Skip to content

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.

It works in your browser. We do not store or send anything you type.Free · No sign-up required

Workspace · JSON Comparator

Runs in your browser · 100% local
1 añadido(s)0 eliminado(s)2 cambiado(s)
  • ≠version
    Antes: "1.0.0"Ahora: "1.1.0"
  • ≠tools
    Antes: 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.

Files are processed in your browser; if you are signed in with history enabled, text results appear in your history.
Instructions

How to use it

01

Paste the original JSON on the left and the new version on the right.

02

Check the summary of additions, deletions and changes.

03

Copy the report if you need to attach it to a review or a ticket.

Examples

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.

Reference guide

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

Frequently Asked Questions

The comparison tool flags this but does not analyse anything until you correct the syntax. You can validate each document separately using the formatter.

Related tools

Other tools that can help with similar tasks.

More at Web development→
Online semantic JSON comparator · ByTooly