Compare two JSON Schemas — see what changed, and what breaks
Paste version 1 and version 2 of a schema. SchemaBox lists every addition, removal and edit — and flags the breaking changes, so you know before you deploy whether old data still validates. Free, no account, nothing leaves your browser.
Try an example below — instant, no setup needed.
Tip: press Ctrl+Enter to compare. The comparison runs entirely in your browser — nothing is uploaded.
Result
Differences
How a change is judged breaking
- Breaking: removing a field; adding a required field (old data without it fails); a field becoming required.
- Breaking: tightening a constraint — a higher minimum, minLength or minItems; a lower maximum, maxLength or maxItems; a narrower enum; an added pattern or format; additionalProperties true → false; uniqueItems false → true.
- Breaking: changing a type (except widening it — adding a type, e.g. "string" → ["string", "null"] — is safe).
- Breaking, to be safe: a changed pattern or format — the tool cannot prove the new one still accepts every old value. $ref, anyOf / oneOf / allOf and other composition keywords are compared as a whole and treated the same way.
- Safe: adding an optional field; a field becoming optional; loosening a constraint; widening an enum or a type.
- Cosmetic: title, description and default changes never break validation.
- Ignored on purpose: $schema, $id, $comment, examples and $defs — they do not change what validates.
- A renamed field shows up as one removal + one addition: the tool compares structure, it cannot guess your intent. This is a structural comparison, not a proof — check the breaking list before you deploy.
The comparison is deterministic: same schemas, same diff, every time. No AI, no server, no surprises. Need a better schema? Generate one from plain words with StrictJSON →