Diff checker: compare two texts

Compare two texts and see added and removed lines highlighted, with options to ignore spaces and case. Private: nothing you paste is uploaded.

Runs in your browser. Nothing you paste is uploaded.

1 line removed, 2 lines added.

11Name: Asha Verma
2−Exam: SSC CGL
2+Exam: SSC CHSL
33Photo: 20–50 KB
44Signature: 10–20 KB
5+Category: General

How to use it

  1. Paste the original text on the left.
  2. Paste the changed text on the right.
  3. See removed lines in red with −, added lines in green with +, and unchanged lines in between, with line numbers from both versions.
  4. Use Ignore spaces, Ignore case or Show only changes to focus on what matters.

Find every change between two versions

Spotting changes by eye is slow and unreliable, whether it's two versions of a contract clause, an essay, a config file, a list of roll numbers or a block of code. The diff checker compares the texts line by line and finds the smallest set of added and removed lines that turns one into the other, the same approach used by Git and other version-control tools.

Line numbers for both sides make it easy to find each change in your own files. A changed line appears as one removed line followed by one added line, so you can see the old and new versions together.

Options

Ignore spaces treats lines as equal when they differ only in spacing or indentation, which helps when one copy was re-indented or pasted from a PDF. Ignore case treats upper and lower case as the same. For JSON, use JSON Diff instead, which ignores key order and shows changes by field path.

Questions

Is there a size limit?
Texts with a few thousand changed lines compare instantly. Very large, very different texts may be too big to compare here; compare a smaller section instead.
Can I compare Word or PDF files?
Copy the text out of them and paste it here. For PDFs, PDF to Text can extract the text first.
Does it compare word by word?
It compares whole lines. Put each sentence on its own line for a finer comparison.
Is what I paste sent to a server?
No. The tool runs as JavaScript in your browser. Your text, files and keys stay on your device, so it is safe to use with internal data, tokens and customer records. It keeps working offline after the page has loaded once.

More free tools