Compare two texts (diff checker)

Paste the original text on the left and the changed text on the right. Lines that were added, removed or edited are highlighted, with the changed words marked.

How to compare two texts

  1. Paste the original text into the left box.
  2. Paste the changed version into the right box. The comparison appears underneath.
  3. Red lines were removed and green lines were added. Darker marks show the exact words that changed.

How to read the result

MarkMeaning
Red line with −This line is in the original but not in the changed text
Green line with +This line is new in the changed text
A red line followed by a green lineThe line was edited. The darker marks show which words differ
No colorThe line is the same in both

The two columns of numbers are the line numbers in the original and in the changed text.

What people use it for

  • Contracts and policies: see what changed between two drafts before you sign.
  • Essays and articles: check an editor's changes, or compare two versions of your own work.
  • Code and config files: spot the line that differs between a working and a broken version.
  • Lists and data: find which entries were added or removed.

The options

  • Ignore extra spaces treats lines as the same when they differ only in spacing or indentation.
  • Ignore capital letters treats Hello and hello as the same.
  • Show only the changes hides the lines that are identical, which helps with long documents.

Tip for comparing paragraphs

The comparison works line by line. A long paragraph is one line, so a single changed word marks the whole paragraph as edited, with that word highlighted inside it.

Your text stays on your device

Everything happens in your web browser. Nothing you type or paste is sent to a server or stored, so it is safe to use with private notes, passwords, keys and work documents. There is no sign-up and no limit.

Frequently asked questions

How do I compare two texts?

Paste one in each box. The differences are highlighted underneath straight away.

Can I compare Word documents or PDFs?

Copy the text out of each document and paste it in. For PDFs, the PDF to Text tool extracts the text first.

Is there a length limit?

Documents of thousands of lines work fine. Extremely long texts that are almost entirely different may be too much for the browser.

Is my text uploaded?

No. The comparison runs in your browser, so confidential documents stay private.