Paste or open two JSON documents to see what changed between them. Each added or removed line is marked, with its line number in both documents and a few unchanged lines around it. "Ignore key order" is on by default, so objects whose keys were only reordered don't show up as changes. Files are compared in your browser and never uploaded. To compare a document with its own earlier versions, open it in the JSON editor, where History keeps restore points.
How to compare two JSON files
- Paste the original JSON on the left and the changed JSON on the right, or open the two files.
- The differences appear below, with the number of added and removed lines in the status bar.
- Leave "Ignore key order" ticked to compare the data, or untick it to see keys that moved.
Read more: Compare two JSON files: values, key order and saved history
Private, and made for big files
This tool runs in your browser, in a background worker: nothing you paste or open is uploaded, and nothing is kept after you leave. Input can be up to 1 GB, but this operation needs its output to fit in the browser’s text limit. A smaller input may be required. Already loaded features keep working if your connection drops. Loading another tool or jq for the first time needs a connection. When one tool isn't enough, GigaJSON opens your data with a tree, a table, JSONPath/JMESPath/jq queries, transforms, diff and history.
Compare two versions of an API record
Paste this in Original:
{"id":7,"name":"Ada Lovelace","email":"ada@example.com","roles":["admin","editor"],"address":{"city":"London","zip":"NW1"},"active":true}and this in Changed:
{"active":true,"id":7,"name":"Ada King","email":"ada@example.com","roles":["editor"],"address":{"city":"London","zip":"NW1 6XE"},"lastLogin":"2026-09-29"}The diff shows four changes: the name, the admin role that was removed, the zip code and the new lastLogin field. The active key moved to the front, but with Ignore key order ticked that isn't a change, because the data is the same. Untick it and the move shows up too.
A changed value appears as a removed line and an added line. For a long list of changes, the guide to comparing JSON files covers arrays, key order and keeping a history of versions.


JSON compare questions
How do I compare two JSON files?
Open the first file in Original and the second in Changed, or paste them. Both are parsed and formatted the same way, then compared line by line. Added lines are marked +, removed lines −, and a changed value shows as one of each.
What does "Ignore key order" do?
Both documents are compared with their object keys sorted, so {"a":1,"b":2} and {"b":2,"a":1} count as the same. JSON doesn't give object keys an order, so most of the time this is what you want.
Does the order of items in a list matter?
Yes. Lists are compared item by item, in order, because in JSON the order of a list is part of the data. If two lists hold the same records in a different order, sort both first (for example with sort_by(.id) in the jq playground) and compare the results.
Do spaces and line breaks count as changes?
No. Both documents are reformatted the same way before the comparison, so a minified file and a pretty-printed one with the same data show no differences.
Can it compare large files?
Yes, up to about 500 million characters of formatted text per document, compared in a background worker. The page shows the first 2,000 lines of differences.
Is my data uploaded?
No. The tool runs in your browser, in a background worker. Nothing you paste or open goes to a server, and nothing is kept after you leave the page.
All tools
- JSON FormatterIndent with 2 or 4 spaces, sort keys
- JSON ValidatorLine and column of the first error
- JSON MinifierRemove whitespace, see the bytes saved
- JSON RepairFixes quotes, commas, comments, AI output
- JSON Schema GeneratorA JSON Schema from examples
- JSON Schema ValidatorCheck JSON against a schema
- JSON Token CounterCount tokens, select data, compare JSON and TOON
- JSON EditorTree and code editing, undo and history
- Large JSON ViewerTree, table and search for huge files
- JSON Lines ViewerJSONL and NDJSON logs as a table
- JSON Log ViewerCount and filter JSON Lines logs
- Large CSV ViewerCSV files too big for Excel, up to 1 GB
- JSON VisualizerThe data as a graph, PNG and SVG export
- JSON DiffChanges between two documents
- JSON Path FinderClick a value, copy its path
- JSONPath TesterJSONPath, JMESPath and jq, live
- JMESPath PlaygroundJMESPath, for AWS CLI queries too
- jq PlaygroundReal jq in your browser
- JSON to CSVNested objects become dotted columns
- JSON to ExcelAn .xlsx sheet, numbers kept as numbers
- CSV to JSONDelimiters detected, 007 stays 007
- JSON to XML@keys become attributes
- XML to JSONRSS feeds, sitemaps, SOAP responses
- JSON to YAMLReadable YAML, ambiguous strings quoted
- YAML to JSONAnchors and multiple documents
- JSON Lines to JSONNDJSON or JSONL into one array
- JSON to JSON LinesA JSON array as one record per line
- JSON to TOONConvert JSON to TOON, with token counts
- JSON to MermaidA flowchart or class diagram, drawn
- JSON SplitterCut a big file into parts, or sample it
- JSON to TypeScriptInterfaces inferred from your data
- JSON to GoGo structs with json tags
- JSON to RustRust structs that derive serde's Serialize and Deserialize
- JSON to PythonPython dataclasses with type hints
- JSON to JavaJava classes with getters and setters
- JSON to C#C# classes with System.Text.Json attributes
- JSON to KotlinKotlin data classes
- JSON to SwiftSwift structs that conform to Codable, with CodingKeys
- JSON to DartDart classes with fromJson and toJson
- JSON to ZodZod schemas with TypeScript types inferred from them
- JWT DecoderHeader, payload and expiry, locally
- JSON EscapeText to a JSON string and back
- Sample JSON FilesDownload test JSON, 100 KB to 1 GB
- Sample JSON Lines FilesDownload test NDJSON, one record per line
- Sample CSV FilesDownload test CSV, 100 KB to 1 GB
- Sample XML FilesDownload test XML, 100 KB to 1 GB
- Sample GeoJSON FilesPoints, lines and polygons, up to 1 GB
- Sample Nested JSONRecords 8 levels deep, up to 1 GB
- Sample Unicode JSON13 scripts, emoji and escapes
- Sample API ResponsesJSON:API, HAL, GraphQL, pages, errors
- Large JSON File GeneratorTest data from 100 KB to 1 GB