Tools / JSON to JSON Schema

JSON to JSON Schema

Paste a JSON example — an API response, a request body, a config file. Get a JSON Schema and a TypeScript type. Nothing leaves your browser.

Example

Input:

{
  "id": 1042,
  "email": "ada@example.com",
  "createdAt": "2026-11-02T09:30:00Z",
  "tags": [
    "beta"
  ]
}

JSON Schema:

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "id": {
      "type": "integer"
    },
    "email": {
      "type": "string",
      "format": "email"
    },
    "createdAt": {
      "type": "string",
      "format": "date-time"
    },
    "tags": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  },
  "required": [
    "id",
    "email",
    "createdAt",
    "tags"
  ]
}

What the converter infers

The output targets JSON Schema draft 2020-12, the version used by OpenAPI 3.1 and by MCP tool definitions.

Tips for a better schema

Where JSON Schema is used

In Wisp, every function has an input and output schema; they become its OpenAPI definition, its MCP tool definition and typed autocompletion in the SDK.

Related