Skip to content

JSON Compare

Compare two JSON documents field by field. Differences in indentation and key order do not pollute the result.

—

PDF report

This button sends your text to the server. Everything else on this page runs in your browser and your text goes nowhere; the PDF is the one exception, because the document is built on the server. The text you send is not stored: the report is generated, then dropped from memory, and it is never written to a log.

Why a line diff is not enough

Two files that hold the same data with different indentation or a different key order look changed from top to bottom in a line comparison — yet the data is identical. Here the tree is walked instead, and the result answers the question "which field changed": $.user.role "user" → "admin".

Array order

The order of object keys is ignored, because it carries no meaning in JSON. Array order is PRESERVED by default: ["a","b"] and ["b","a"] are different lists, and quietly treating them as equal would be wrong. You can turn that off when order really does not matter to you.

Output

Download the field list as CSV to work through it in a spreadsheet, or show only the changed fields to find what you are looking for in a long configuration file.

Other comparison tools