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
- Paste the original on the left and the changed version on the right.
- Choose lines for code, lists and files, words for sentences and documents, or characters for short strings such as codes.
- Removed parts are marked − and struck through; added parts are marked + and underlined. In changed lines the exact words that differ are highlighted.
- 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
| Tab | Move between the boxes and options |
| Typing | The 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.