Free, no sign-up, runs in your browser
JSON to JSON Schema generator and validator
Paste one or more sample JSON values and get a JSON Schema, with presets for OpenAI strict mode, Claude structured outputs and MCP tool inputs. Then check any JSON, such as a model's answer, against the schema.
How it works
Paste sample JSON. Several samples, one per line, are merged into one schema.
Choose what the schema is for: plain JSON Schema, OpenAI, Claude or MCP, then press Make schema.
Copy or download the schema, then paste JSON into the validator to check it.
Ready for structured outputs
The OpenAI and Claude presets close every object with additionalProperties false and list the required fields, and the tool warns about keywords and formats each provider does not accept.
Learns from several samples
Fields missing from some samples become optional, values seen as null become nullable, and formats such as date-time, email and uuid are detected.
Plain English validation
Paste a model's answer, with or without its code fence, and see every problem with its exact location, such as /jobs/1/salary is missing the required field min.
Questions
How do I make a JSON Schema from JSON?
Paste a sample of your JSON and press Make schema. Types, nested objects, lists and required fields come from the sample. Add more samples, one per line, so fields that are sometimes missing are marked optional.
What makes a schema work with OpenAI strict mode?
Every object needs additionalProperties false and every field must be listed in required; an optional field stays required and allows null. The OpenAI preset does this and lists any keyword or format OpenAI does not support.
Does it work for Claude tools and MCP servers?
Yes. The Claude preset gives a schema and a request part for structured outputs or a strict tool. The MCP preset gives a tool definition with an inputSchema whose top level is an object.
Which JSON Schema versions does the validator support?
Draft 2020-12 by default, and drafts 2019-09, 7, 6 and 4 when the schema names them in $schema. The list of checked keywords is on the page. unevaluatedProperties, unevaluatedItems and references to other files are reported as not checked.
How current are the provider rules?
They were checked against OpenAI's and Anthropic's documentation on 5 December 2026. Providers change their rules, so the date is shown next to the checks.
Is my JSON uploaded?
No. Everything runs inside your browser, so API responses and schemas never leave your device.
More free tools
All toolsMCP config builder and checker
Build or check MCP configs for Claude Desktop, Claude Code, Cursor and VS Code.
Open the toolJSON to CSV
Flatten nested JSON or JSON Lines into a clean table.
Open the toolJSON to Excel converter
Turn JSON, nested JSON or JSON Lines into an Excel workbook with linked sheets.
Open the tool