Text Compare

Spot exactly what changed between two versions of a text, by line, by word or by single character.

Original text
Your text stays in your browser.0 lines
Changed text
Your text stays in your browser.0 lines
Differences
Paste text into both boxes to see the differences.

Comparing two versions

  1. Put the older version on the left and the newer one on the right. The order decides which side counts as removed and which as added.
  2. Choose how to compare: by lines for lists, code and documents, by words for edited paragraphs, or by characters to catch small typos.
  3. Tick Ignore case or Ignore extra whitespace to hide differences that do not matter to you.
  4. Read the highlighted result below. Green shows what was added and red shows what was removed, with a summary count at the top.

How to find the difference between two texts

You have two versions of something: a contract that came back from a client, two drafts of an essay, two lists of email addresses or two copies of a config file. Reading them side by side to find the changes is slow and unreliable. A comparison tool does it in a moment and does not skip anything.

Paste the older text on the left and the newer on the right. The tool matches up the parts that are the same and marks the rest: text that exists only in the original is shown in red, and text that exists only in the changed version is shown in green. Everything that stayed the same is left in plain text so you can see the changes in context.

Compare by lines, words or characters

ModeShowsBest for
LinesWhole lines added or removedLists, code, config files, CSV exports, long documents
WordsIndividual words changed within sentencesEdited paragraphs, essays, contracts, articles
CharactersSingle letters or digits changedTypos, product codes, phone numbers, spot-the-difference

Lines is the fastest and handles very long texts. If one line has changed slightly and you want to see exactly where, switch to words for that section. Characters is the most detailed, and best for a short string, such as two almost-identical IDs, where one digit differs.

Compare two documents and check what an editor changed

When someone edits your writing without tracked changes, or you receive a document back with no history, this tool shows what happened. Paste your original and the returned version, switch to word mode, and you see every replaced word, deleted sentence and added clause. It is also a quick way to check that a contract or terms page has not been altered in places you did not expect, or to confirm that two versions that should be identical really are.

For documents that began in Word or Google Docs, copy the text as plain text. Formatting such as bold or font changes is not compared, only the words.

Ignore case and whitespace to cut the noise

Sometimes differences are real but unimportant. A heading changed from title case to sentence case, an extra space after a full stop or a different number of blank lines can fill the result with highlights. Tick Ignore case to treat “Hello” and “hello” as the same, and Ignore extra whitespace to treat runs of spaces and different line endings as equal. What remains are the changes that affect meaning.

If the whitespace in one of the texts is badly messed up, run it through the extra space remover first. For lists whose order differs but contents are the same, sort both with the line sorter and compare again.

Other uses for a text diff

  • Checking two exports of a spreadsheet column to see which entries are new.
  • Comparing code snippets, SQL queries or config files before deploying a change.
  • Seeing what a website or policy page changed between two copies.
  • Verifying a translation or proofread version against the source.
  • Finding which lines in a list were removed after cleaning it with the duplicate line remover.

Diff and comparison questions

How do I compare two texts for differences?

Paste one version in each box. The differences are highlighted automatically below, with a count of additions and removals.

What do the green and red colours mean?

Green marks text that appears only in the changed version, which means it was added. Red marks text that appears only in the original, so it was removed.

Which comparison mode should I use?

Lines for lists and code, words for edited writing and characters for tiny typos or codes.

Can it ignore capital letters and extra spaces?

Yes. Tick Ignore case and Ignore extra whitespace to hide differences that do not matter.

Is there a size limit?

Line comparison handles large documents. Word and character modes are limited to a few thousand differences, and you will see a message if a text is too large. Switch to lines in that case.

Does it compare formatting such as bold or fonts?

No. It compares plain text only, so formatting changes are not shown.

Is it safe to compare contracts or other private documents here?

Both texts stay inside your browser tab and are compared on your device. Nothing is posted or stored, so it suits sensitive documents.

Prepare your texts with

Comparisons are cleaner when both sides are tidy. Run each version through the extra space remover, sort lists with the line sorter, or drop duplicates with remove duplicate lines before comparing. To apply a fix you found, find and replace does the bulk edit, and the word counter checks the length.