JSON Schema Generator
Turn JSON data into a Draft-07 JSON Schema instantly
Paste in JSON and this tool inspects the type of every value (string, number, object, array, and so on) to generate a Draft-07 JSON Schema in real time. It's built for developers writing API documentation or setting up data validation rules, and since everything runs in your browser, the data you paste never leaves your machine.
도구를 불러오는 중…
🔒 Everything runs 100% in your browser. Your files and input are never uploaded to any server.
How to use
- Paste or type the source JSON you want a schema for into the input box on the left.
- Optionally give the schema a title, and use the checkbox to mark every property as required.
- The generated JSON Schema appears in real time as you type.
- Hit the copy button and paste the schema straight into wherever you need it.
FAQ
- What happens if an array contains mixed types?
- When array items have more than one type, the generator picks one sample per type and combines them into an anyOf schema.
- What does the "mark all properties as required" option do?
- Checking it adds every key of an object to the required array, producing a schema in which all of those properties must be present.
- What happens if I paste invalid JSON?
- If there's a syntax error, you'll see an error message explaining what went wrong instead of a schema.
