Design a JSON Schema visually or as raw JSON, check sample data against it as you go, or generate a starting schema from example JSON. Everything stays in this browser.
Select an item to edit it. Arrow keys move between items, Alt plus Up or Down reorders, Delete removes.
The raw schema has a syntax error, so visual editing is paused. The designer and the validator keep using the last valid schema.
Edit the JSON Schema directly. Valid changes update the structure straight away. Tab leaves the editor.
Type or paste JSON data to check against the schema. Tab leaves the editor.
Paste one or more JSON examples. A starting schema is generated from them and replaces the current schema. Undo brings the previous schema back.
Schemas use JSON Schema Draft 2020-12. The validator checks types, enum and const, string, number, array and object rules, allOf, anyOf, oneOf, not, if, then and else, dependent properties, local references to definitions and anchors, and the common formats: date-time, date, time, duration, email, hostname, ipv4, ipv6, uri, uri-reference, uuid, json-pointer and regex.
Keywords the visual editor has no control for are kept exactly as written and can be edited in the Schema tab.
Your schema and sample data are handled entirely in this browser. They are not sent to our server, not logged and not used for analytics. A working copy is saved in this browser's local storage so it is still here next time. Use Clear saved draft to remove it.