Text Diff Checker

Compare two texts and highlight every added and removed line.

🔒 Runs entirely in your browser. Nothing you enter is uploaded or stored.

What is the Text Diff Checker?

A diff checker compares two versions of a text and shows exactly what changed. Paste the original on the left and the new version on the right. Lines that were removed or added are highlighted, with line numbers from both versions.

The comparison uses the Myers diff algorithm, the same one behind git diff. It finds the smallest set of changes, so the result matches what you would see in a code review. Use it to compare config files, contract versions, SQL queries, translations or any two blocks of text. Options let you ignore whitespace and letter case, and hide unchanged lines in long files.

How to use the Text Diff Checker

  1. Paste the original text in the left box and the changed text in the right box.
  2. Click Compare.
  3. Removed lines are shown in red with a −, added lines in green with a +. A changed line appears as one removal and one addition.
  4. Tick Show only changes to hide unchanged lines, keeping two lines of context around each change.

Frequently asked questions

Is the text I compare uploaded?

No. The diff runs in your browser, so you can compare confidential documents and source code safely.

Why is a modified line shown as removed and added?

This is a line-based diff, like Git. A changed line is the old line removed plus the new line added, shown next to each other so the change is easy to read.

Can I compare JSON files?

Yes. For the clearest result, format both files with the JSON Formatter first, using the same indentation and Sort keys on. Differences in formatting or key order then disappear.