Text Compare

Paste two versions of a text to see exactly what was added, deleted or changed. Compare by line, word or character, with changes inside a line highlighted.

Differences

iPhone app ยท Free to downloadLED Marquee - Scrolling TextTurn your iPhone into a scrolling LED sign for concerts, airports and events.View on the App Store

About the Text Compare

This diff checker compares an original and a changed text and shows the differences in color: deleted parts in red, added parts in green. In line mode, the exact characters that changed inside a line are highlighted too, so you can spot a single typo or a changed number right away.

Use it to compare contract drafts, edited essays, code, configuration files or two versions of a list. Everything runs in your browser โ€“ nothing is uploaded.

How to use

  1. Paste the original text into the first box and the changed text into the second.
  2. Choose whether to compare by Lines, Words or Characters.
  3. Turn on Ignore whitespace or Ignore case if those differences donโ€™t matter.
  4. For long documents, tick Only show changes to see just the changed lines with a little context.

Worked examples

Checking a changed config file (Lines)

Input
Original: port: 8080 / host: localhost / debug: true / timeout: 30
Changed: port: 8080 / host: 0.0.0.0 / debug: false / timeout: 30 / retries: 3
Result
+3 lines added, โˆ’2 lines deleted
host and debug appear as red/green pairs with localhost โ†’ 0.0.0.0 and true โ†’ false highlighted; retries: 3 is a new green line.

Unchanged lines (port, timeout) stay plain, so with Only show changes ticked a long file shrinks to just the edited block and three lines of context around it.

A lease clause before and after editing (Words)

Input
Original: The tenant shall pay rent on the first day of each month.
Changed: The tenant must pay rent no later than the fifth day of each month.
Result
+5 words added, โˆ’3 words deleted
shall โ†’ must, on โ†’ no later than, first โ†’ fifth

Word mode is the easiest way to review edits in prose: each replaced word is shown struck through in red next to its green replacement, in reading order.

Two digits swapped in an invoice (Characters)

Input
Original: Invoice total: $1,284.50
Changed: Invoice total: $1,248.50
Result
+1 character added, โˆ’1 character deleted ยท $1,2848.50

A swap shows up as one deletion and one insertion. Character mode is the one to use for amounts, IDs and account numbers, where a single digit matters.

Which comparison mode should I use?

ModeBest for
LinesCode, lists, configuration files, documents split into lines
WordsSentences and paragraphs, proofreading and edits
CharactersTypos, single digits, spacing differences

When to ignore whitespace and case

Text copied from Word or a PDF often has different numbers of spaces or trailing spaces, so lines can look different even when the content is the same. Ignore whitespace treats runs of spaces as one and ignores spaces at the start and end of lines. Ignore case treats โ€œHelloโ€ and โ€œhelloโ€ as equal.

FAQ

Can I compare Word (.docx) or PDF files directly?

File upload isn't supported. Copy the content of each document and paste it into the two boxes.

Why is almost every line marked as changed?

Text copied from PDFs is often wrapped at different points, so in line mode every line looks different. Clean both versions with Remove Line Breaks first, or switch to Words and tick Ignore whitespace.

I ticked Ignore case but it still shows a difference.

Ignore case only treats upper- and lowercase letters as equal. If the lines also differ in spacing, for example "Hello world " and "hello world", tick Ignore whitespace as well and the result becomes No differences.

Does it work with long documents?

Thousands of lines are compared instantly. If two texts differ in more than 4,000 places, the calculation stops and that section is shown as entirely changed.

Is my text saved?

Only in this browser, so you can continue later. It is never sent to a server, and Clear all deletes it.