Text Diff

Compare two JSON files

Original
Changed
Help

What this does

Paste one JSON file on the left and the other on the right. Every line that differs is highlighted, and inside an edited line the exact value that changed is picked out.

Format both files the same way first

JSON does not care about spacing, but a text comparison does. If one file is on a single line and the other is indented, everything will look changed. Pretty-print both first, then compare. Sorting the keys the same way in both files helps too.

Common uses

Checking what changed between two API responses, spotting the one setting that differs between a staging and a production config, reviewing a package-lock or composer.lock before committing it, and confirming an export actually matches the original.

Is it private?

Yes. The comparison runs inside your own browser using JavaScript. Your JSON is never uploaded, never stored, and never logged.

Feedback

Found a bug, or want something the tool cannot do yet? Tell me here. This form is the only part of the site that sends anything anywhere — whatever is in the two boxes above stays on your machine.