Nifty / Tools / Text

Diff Checker

Paste the original text on the left and the changed text on the right. Every added, removed and changed line is marked, down to the words that differ.

diff-checker
Original textDrop a file here
Changed textDrop a file here
Differences
Loading…

Runs in your browser. Nothing you paste is uploaded or stored.

How to use the Diff Checker

  1. Paste or drop the original text in the left box and the changed version in the right box.
  2. Read the differences below: removed lines in red, added lines in green, changed words highlighted. Switch View to Inline for one column.
  3. Ignore whitespace or case if they don't matter, tick Hide unchanged lines for long texts, and use Copy result to get a unified diff.

Questions

Is my data uploaded anywhere?

No. The tool runs entirely in your browser. Nothing you paste or drop is sent to a server, logged or stored, so it's safe for API responses, config files and other private data.

How does the diff checker decide what changed?

It finds the smallest set of added and removed lines that turns one text into the other (Myers' algorithm, the same idea git diff uses), then compares the words inside each changed line.

Can it ignore whitespace and line endings?

Windows (CRLF) and Unix (LF) line endings are always treated alike. The Whitespace option can also ignore spaces at line ends, or all spaces and tabs, which helps after re-indenting code.

What does Copy result give me?

A unified diff, the same format as diff -u and git diff, which you can paste into a code review, an issue or a patch tool.

Can I compare files and folders in VS Code?

Yes. Nifty Folder Compare shows which files were added, removed or changed between two folders and opens side-by-side diffs for each changed file.

Related tools