JSON to schema On-device
Sample JSON in, schema and tool definitions out.
Paste on the left to start.
Paste above to start.
Everything runs on your device. Nothing you paste is sent anywhere, and it's cleared when you close the tab.
Paste one sample of the JSON you expect and get a schema inferred from it: integers and numbers, dates, emails, enums and optional fields. Output covers JSON Schema, tool definitions for OpenAI, Anthropic and Gemini, Zod, Pydantic and TypeScript. The schema is inferred from your sample, so check it against the real data. Nothing you paste is sent anywhere.
About this tool
What you provide
- One JSON object or array, or several documents separated by blank lines.
What you get
- JSON Schema, OpenAI, Anthropic and Gemini tool definitions, Zod, Pydantic and TypeScript.
Limits
- The schema is inferred from samples only and may miss cases your data has.
- Schema to sample data is not supported.
How to use it
-
Paste sample JSON
Paste an object, an array or several documents.
-
Set the options
Name the schema and choose how required fields and arrays are handled.
-
Pick a target
Choose a tab for the format you need, then copy or download.
Frequently asked questions
How is the schema inferred?
From the sample you paste: types, date and email formats, small sets of repeated words as enums, and fields missing from some documents as optional. It is a starting point, so check it against real data.
Can I paste several documents?
Yes. Separate them with a blank line and they are merged into one schema.
Does my JSON leave the page?
No. The schema is built on your device and nothing is sent anywhere.