Text Comparer

Paste two versions of a document, contract, essay or piece of code to see exactly what changed. Added text is highlighted in green and removed text in red, with changes inside each line marked word by word.

0 characters
0 characters
Compare by
Ignore

This tool runs entirely in your browser. Your files and text are processed on your own device and are never uploaded to our servers.

How to use the Text Comparer

  1. Paste the original version on the left and the changed version on the right, or open a text file into each box.
  2. Choose how to compare: by lines (best for code, lists and documents), by words (best for prose) or by characters (best for short strings).
  3. Optionally ignore differences in upper/lower case or spacing, then select “Compare texts”.
  4. Review the highlighted differences. Long stretches of unchanged lines are collapsed — select “Show unchanged lines” to expand them.

Examples

Spotting an edited sentence

In word mode the rest of the sentence stays unhighlighted, so the single change stands out.

Input
Original: The meeting is on Monday at 10am.
Changed:  The meeting is on Tuesday at 10am.
Result
Removed: “Monday” · Added: “Tuesday”

Comparing two versions of a list

In line mode, a line that was deleted appears with a “−” and its old line number, a new line appears with a “+” and its new line number, and a line that was edited shows both versions with the changed words highlighted.

Ignoring formatting-only changes

If one version was re-indented or uses different capitalisation, turn on “Spacing differences” and “Upper/lower case differences” to see only real changes to the content.

How the comparison works

Toolora uses jsdiff, a well-established open-source implementation of the Myers difference algorithm — the same approach used by tools such as Git. It finds the smallest set of additions and deletions that turns the original text into the changed text.

Large comparisons run in a background thread (a Web Worker), so the page stays responsive while your texts are being compared. If two very large texts are almost completely different, the comparison stops after a few seconds instead of freezing your browser.

Frequently asked questions

Are my texts uploaded to a server?

No. The comparison runs entirely in your browser, so confidential documents, contracts and source code never leave your device.

Should I compare by lines, words or characters?

Use lines for code, data, lists and documents with line breaks; edited lines still show word-level highlights. Use words for paragraphs of prose, where a single long line may contain several edits. Use characters for short values such as IDs, URLs or passwords where single-character changes matter.

How large can the texts be?

Each text can be up to 2 million characters — roughly a 300,000-word book. Comparing large texts takes a little longer, especially when they are very different.

Can I compare Word or PDF documents?

Copy the text out of the document and paste it into each box. You can also open plain-text files (.txt, .md, .csv, .json) directly.

Why is a whole line marked as changed when only one word is different?

In line mode, any line that differs is shown as removed and re-added. The exact words that changed are highlighted more strongly inside those lines, so you can still see the precise edit.

Everything you need. One simple place.

Free, fast online tools for text, PDFs, images, data and everyday maths. Every tool runs entirely in your browser, so your files stay on your device.

  • Privacy-first processing
  • No sign-up required

© 2026 Toolora. All rights reserved.

Built for speed and privacy