Compare Text

See exactly what changed between two texts or files, with changed words highlighted. Nothing is uploaded.

Runs in your browser. Nothing is uploaded.

Updated

Your textProcessed in your browser · Files up to 10 MB

There’s no Compare button: the differences appear below as soon as both boxes have text, and update as you type.

Your text stays on this device. No upload required.

How to use Compare Text

  1. Paste the original and the changed text, or open two files.
  2. Choose side-by-side or inline view and what to ignore.
  3. Review the highlighted changes, then copy or download the diff.

Compare Text at a glance

Typical use: Compare two drafts of a contract to find every edited sentence.

Files up to 10 MB each, read on your device. Lines are compared in order; for unordered lists use Compare Two Lists.

When to use Compare Text

Paste two versions of a text, or open two files, to see exactly what changed: added and removed lines, with the changed words highlighted inside each line. It works for contracts, articles, code, configuration files, CSV exports and lists.

Everything runs in your browser. Opened files are read on your device and never uploaded, so you can compare private documents safely.

Compare Text examples

  • Two drafts of a document: paste both and switch to Changed words to spot small edits in long paragraphs.
  • Config before and after: open both files and turn on Ignore spaces to hide indentation-only changes.
  • Share the result: click Copy unified diff to paste the changes into a ticket, chat or code review.

Reading the result

  • Red lines exist only in the original; green lines exist only in the changed text.
  • Darker highlights inside a line mark the exact words or characters that changed.
  • Long runs of unchanged lines are folded. Click Show … unchanged lines to open them.

Prefer the terminal?

In a terminal, diff compares two files and prints the changed lines:

diff -u original.txt changed.txt
git diff --no-index --word-diff original.txt changed.txt

The git command highlights changed words like this page does. Need diff’s exact output formats? Use diff Online.

Frequently asked questions

Are my texts or files uploaded?

No. The comparison runs in your browser, and files you open are read on your device. Nothing is sent to a server.

How large can the texts be?

Each file can be up to 10 MB. Large comparisons run in the background so the page stays responsive; two 5 MB files with scattered edits compare in well under a second on a typical laptop.

What do the ignore options do?

Ignore case treats upper and lower case as the same. Ignore spaces ignores all spaces and tabs, so indentation changes disappear. Ignore blank lines hides changes that only add or remove empty lines.

Can I compare Word or PDF files?

Not directly: opened files must be plain text, such as .txt, .csv, .json or source code. For a PDF, take its text out with PDF to Text (or, for a scan, OCR PDF) and paste it here. For a Word file, copy the text from Word.

How is this different from Compare Two Lists?

Compare Text keeps the order of lines and shows where each change happened. Compare Two Lists ignores order and tells you which entries are shared or missing.