Free tool

Text and JSON Diff

Compare two blocks of text or JSON and see exactly which lines changed.

Result

Paste the original on the left and the changed version on the right to get a line-by-line comparison. It uses a longest-common-subsequence match, the same approach as diff itself, so moved and inserted blocks line up instead of everything after a single insertion appearing changed.

The JSON mode is the one worth knowing about. Turning it on parses both sides and reprints them with sorted keys and consistent indentation before comparing, which removes the noise from key order and formatting so you see only genuine differences in the data. That is usually what you actually want when comparing two API responses.

How to use it

  1. Paste the original text on the left and the new version on the right.
  2. Turn on JSON mode to normalise both sides before comparing.
  3. Ignore whitespace or case if those differences are not meaningful to you.
  4. Read the result: minus lines were removed, plus lines were added.

Frequently asked questions

Why does the whole file look changed after one edit?

That happens with tools that compare line N to line N. This one matches common subsequences instead, so inserting a line shifts the rest without marking it changed. If everything still looks changed, check whether line endings differ, which is the usual culprit.

Can I compare two JSON responses meaningfully?

Yes, that is what JSON mode is for. Both sides are parsed and reprinted with sorted keys and uniform indentation first, so differences in key order or formatting disappear and only real data differences remain.

Does it detect a line that simply moved?

Partly. A moved line shows as a removal in one place and an addition in another, which is how standard line diff behaves. It is not a rename or move detector.

Is there a size limit?

A practical one. Comparison cost grows with the product of the two line counts, so beyond roughly two thousand lines each it switches to a faster but less precise comparison and tells you it has done so.

The desktop version

Text and JSON Diff in Toolbelt

This page does the job in a browser tab. Toolbelt is the same tool as a native Mac app, plus the things a web page cannot do.

Toolbelt

Tools

Input
{"name":"Holizmi","tools":["json","jwt","base64"],"live":true}
Output
{
  "name": "Holizmi",
  "tools": [
    "json",
    "jwt",
    "base64"
  ],
  "live": true
}
Valid JSON. 4 keys, 96 characters.K to switch tools
  • Compare two files straight from Finder instead of pasting
  • Diff whole folders and see which files differ
  • Three-way comparison when resolving a merge by hand
  • Works with no connection at all

Coming soon·$29 one-time purchase

One email when it ships. Nothing else, ever.

Everything Toolbelt does

macOS 14+ · Mac App Store

Free tools, forever.

These stay free and run in your browser. The paid Mac app is for when you want them native, offline and on a keyboard shortcut.