{ } JSON → TypeScript

Paste JSON, get typed interfaces. Runs 100% in your browser.

JSON Input

TypeScript Output

Example JSON (click to load)
{
  "id": 1,
  "name": "Alice",
  "email": "alice@example.com",
  "active": true,
  "roles": ["admin", "editor"],
  "address": {
    "street": "123 Main St",
    "city": "Springfield",
    "zip": "62704",
    "geo": { "lat": 39.7817, "lng": -89.6501 }
  },
  "posts": [
    { "id": 101, "title": "Hello World", "published": true, "tags": ["intro"] }
  ],
  "metadata": null
}