Play n Tools

Free tools & games for everyone

Free · No sign-up · No accounts

Text & JSON compare

Compare two texts or two JSON files and see exactly what was added, removed or changed, by line, word or character, or by JSON path.

How to use

  1. Paste the original on the left and the changed version on the right.
  2. Choose lines for code, lists and files, words for sentences and documents, or characters for short strings such as codes.
  3. Removed parts are marked − and struck through; added parts are marked + and underlined. In changed lines the exact words that differ are highlighted.
  4. For JSON, choose JSON data: you get a list of every added, removed and changed value with its path, whatever the key order or spacing.

Keyboard and touch

TabMove between the boxes and options
TypingThe comparison updates as you type

Tips

  • Comparing two versions of a contract or essay? Use words, and tick Ignore spacing so re-wrapped lines do not count as changes.
  • Long unchanged stretches are folded to keep the changes in view; tick Show every unchanged line to see it all.
  • Two JSON files that look different can hold the same data: JSON mode tells you if only the order or spacing changed.

About this tool

It uses Eugene Myers' 1986 difference algorithm, which finds the smallest set of removals and additions that turns the left text into the right one. The tests check it against a brute-force longest-common-subsequence count. JSON arrays are compared position by position.

Nothing is stored or sent: both texts stay on your device.

See you tomorrow!

A fresh daily puzzle every morning, and new tools added every month.

Browse every product