jsontoschema

See the structure of any JSON instantly

Paste a JSON payload from any source and get a clear overview of its shape. No scrolling through hundreds of repeated objects.

From data to structure in one paste

Reading raw JSON to understand its structure is tedious. You scroll past repeated array items, mentally track nesting levels, and try to figure out which fields are always present vs. occasional.

The structure viewer does that work for you. It scans the entire payload, merges array items into one representative shape, and shows you exactly what the data contains: field names, types, nesting, and optionality.

Screenshot: the jsontoschema tool with a large API response on the left and a compact schema on the right

Works with anything

API responses

Paste a response from your browser dev tools, Postman, or curl output.

Config files

Understand the shape of a package.json, tsconfig, or any JSON configuration.

Database exports

Drop in a MongoDB document or a JSON export from any database to see its schema.

What you get

Raw JSON (1,200 lines)
{
  "meta": {
    "page": 1,
    "perPage": 50,
    "total": 2340
  },
  "results": [
    {
      "id": "evt_8f2a",
      "type": "purchase",
      "amount": 49.99,
      "currency": "EUR",
      "customer": {
        "id": "cus_12ab",
        "email": "jo@example.com"
      },
      "metadata": null
    },
    ... 49 more items
  ]
}
Structure (12 lines)
{
  meta: {
    page: number,
    perPage: number,
    total: number
  },
  results: [{
    id: string,
    type: string,
    amount: number,
    currency: string,
    customer: {
      id: string,
      email: string
    },
    metadata: null
  }]
}

Privacy first

Everything runs in your browser. Your JSON is never sent to a server, stored, or logged. Paste confidential API responses, internal configs, or production data without any concern about data leaving your machine.

Understand any JSON in seconds

Paste it in, see the structure. Nothing to install, nothing to sign up for.