Text Diff Checker

Compare two texts and highlight the differences line by line or word by word, with added and removed content colour-coded. Ignore case or whitespace. Private, in your browser.

+2 added2 removed
The quick brown fox jumps over the lazy dog.
+The quick brown fox leaps over the lazy dog.
Second line stays the same.
Third line will be removed.
+A brand new line is added.

Line diff compares whole lines; word diff highlights individual added and removed words. Green marks additions in the “Changed” text, red marks removals from the “Original”. Everything runs in your browser — nothing is uploaded.

The Text Diff Checker compares two pieces of text and highlights exactly what changed between them. Paste your original text on the left and the changed version on the right, and it instantly marks added content in green and removed content in red, with a count of additions and deletions.

You can compare line by line (like a code diff) or word by word (better for prose and paragraphs), and optionally ignore case or whitespace differences. It is useful for proofreading edits, comparing document versions, checking code changes, and spotting plagiarism or copy edits. Everything runs in your browser — nothing is uploaded.

How to compare two texts

  1. Paste the original text in the left box and the changed text in the right box.
  2. Choose “Line diff” to compare whole lines, or “Word diff” to highlight individual word changes.
  3. Optionally tick “Ignore case” or “Ignore whitespace” to skip those differences.
  4. Read the highlighted result — green is added, red is removed — with the totals shown above.

Line diff vs word diff

Line diff compares your text one line at a time and is ideal for code, lists, and anything organised into lines — it shows whole lines that were added or removed. Word diff compares individual words and flows the result as continuous text, which is better for prose where a sentence changed only slightly.

What it is good for

  • Proofreading and reviewing edits to a document.
  • Comparing two versions of an article, contract, or email.
  • Checking what changed between two snippets of code or config.
  • Spotting duplicated or lightly reworded text.

Frequently Asked Questions

How do I compare two texts for differences?

Paste one text in each box. The tool highlights additions in green and removals in red, and shows how many lines or words were added and removed. Choose line or word mode depending on your text.

What is the difference between line diff and word diff?

Line diff compares whole lines and is best for code and lists; word diff compares individual words and is better for prose where only part of a sentence changed.

Can I ignore case or spacing differences?

Yes. Tick “Ignore case” to treat uppercase and lowercase as the same, and “Ignore whitespace” to ignore differences in spaces, tabs, and line spacing.

Is my text kept private?

Yes. The comparison happens entirely in your browser using JavaScript. Neither text is ever uploaded to a server or stored.

Is there a limit on text size?

Line diff handles large documents comfortably. Word diff is more intensive, so for very large texts it may ask you to switch to line diff or compare shorter sections.