JSON Formatter
Pretty-print, beautify and validate JSON with precise error locations, key sorting and custom indentation.
Open toolCompare two JSON documents structurally: added, removed and changed values with JSON Pointer paths, side-by-side highlights and a JSON Patch export.
Unlike a line-by-line text diff, this compares the parsed structure, so key order and formatting don’t matter. Every difference is listed with its JSON Pointer path (for example /items/2/price) and classified as added, removed, changed or type changed (such as the number 2 becoming the string "2"). Side-by-side views highlight the affected lines; untick Show unchanged lines to see only what changed.
Arrays are compared by position by default. If your arrays hold objects with an identifier, switch to matching by key (for example id) so reordering doesn’t show up as changes. You can export the differences as a standard JSON Patch (RFC 6902) that turns the original into the changed document. Everything runs in your browser. Your data is never uploaded, logged or stored.
Your code or text
JSON, JSON Patch (RFC 6902)
Processed in this browser
Instant, in-browser. Nothing is uploaded.
Your result
Ready to download or copy
Paste the original JSON on the left and the changed JSON on the right.
Optionally match array items by a key such as id.
Read the change table and highlights, then copy or download the JSON Patch.
Zero-upload architecture
Free, with no sign-up or watermark · Your files stay on your device
Launch the app and add your file. There is nothing to install and no account to create.
Optionally match array items by a key such as id.
Read the change table and highlights, then copy or download the JSON Patch.
Pretty-print, beautify and validate JSON with precise error locations, key sorting and custom indentation.
Open toolEvaluate JSONPath expressions against your JSON and see every match with its path, in a safe sandbox.
Open toolInfer a starter JSON Schema (draft 2020-12) from sample JSON, with types, nested objects, arrays, required keys and formats.
Open toolCompare two texts or code snippets line by line, word by word or character by character, side by side or as a unified diff.
Open tool