Semantic JSON comparator
Paste two documents and get a list of differences by path. The order of the keys doesn’t matter; changes in value, added items and deleted items do.
Workspace · JSON Comparator
- ≠
versionAntes: "1.0.0"Ahora: "1.1.0" - ≠
toolsAntes: 164Ahora: 201 - +
tags[2]Ahora: "desarrollo"
El orden de las claves no cuenta como diferencia; el orden de los elementos de un array sí. Se muestran hasta 500 cambios.
How to use it
Paste the original JSON on the left and the new version on the right.
Check the summary of additions, deletions and changes.
Copy the report if you need to attach it to a review or a ticket.
Examples
Version update
If ‘tools’ changes from 164 to 201, the ‘tools’ path is marked as having changed, showing both the previous and the new values.
New element in an array
An extra element appears at the end as an addition to the `tags[2]` array, because the order of the arrays does matter.
What you need to know
The comparator converts both texts using `JSON.parse` and iterates through the values recursively. Keys are compared by name, so reordering them does not introduce any noise. In arrays, elements are compared by index: inserting an element at the beginning shifts the rest of the array and will result in several differences.
This is not a text diff: it does not show lines or formatting, but rather the structure of the data. If you need to compare two files line by line, use the text comparator; if you want to validate the formatting, use the JSON formatter.
Frequently Asked Questions
Related tools
Other tools that can help with similar tasks.
JSON formatter and validator
Formats, validates and organises JSON with error detection.
Text comparison tool
Compare two texts and highlight the differences line by line.
JSON Minifier
Removes spaces and line breaks from a JSON file without losing any data.
