English

Text Diff Checker – Compare Text

Highlight differences between two texts. Free, private and runs in your browser.

Advertisement

About the Text Diff Checker

Find exactly what changed between two versions of a document, contract, essay or code snippet. Paste the original and the changed text, and the diff checker highlights additions in green and removals in red.

Like every tool on this site, it runs entirely in your web browser using JavaScript. Your files and text are never uploaded to a server, which makes it fast, free and private.

How to use the Text Diff Checker

  1. Paste the original text in the left box and the new version in the right box.
  2. Choose to compare by lines (best for code and lists) or words (best for prose).
  3. Optionally ignore case.
  4. Click “Compare” to see highlighted differences.

How the comparison works

The tool uses the longest common subsequence (LCS) algorithm – the same idea behind git diff – to find the minimal set of insertions and deletions that transform one text into the other. Unchanged parts are shown normally, removed text is struck through in red and added text is highlighted in green.

Use cases

Check edits to contracts before signing, compare essay drafts, review configuration file changes, spot differences in translated text, or verify that copied data matches the source.

Frequently asked questions

Is my text uploaded?

No, comparison runs entirely in your browser.

Is there a size limit?

Very long texts (tens of thousands of lines) may be slow; the tool warns if they are too large.

Can I compare files?

Open the files, copy their content and paste it into the boxes.

Does it ignore whitespace?

In line mode, whitespace differences count. Use word mode to focus on words.

Guides and how-tos

  • How to Format, Validate and Fix JSON – Beautify, minify and validate JSON online for free. Learn how to read error messages and fix trailing commas, quotes and other common JSON syntax mistakes.

Related tools

Advertisement