Text compare

Compare two versions of a text and see exactly what changed: added text in green, removed text in red, line by line or word by word.

Your files stay on your device. Nothing is uploaded.

Text compare

Updates as you type

Step 1: Paste the two texts

Step 2: How to compare

Compare

Line by line suits code and lists. Word by word shows small edits inside sentences.

Ignore

Step 3: Differences


    

How to compare two texts

  1. Paste both versions

    Paste the original on the left and the changed version on the right.

  2. Choose how to compare

    Line by line for code and lists, word by word for edits inside sentences. You can ignore capital letters and extra spaces.

  3. Read the differences

    Added text is green and underlined, removed text is red and crossed out, with a count of changes.

About this tool

Line or word

Line by line marks each changed line as removed and added, which is clear for code, lists and data. Word by word shows a changed word inside a sentence, which suits contracts, essays and articles.

How it works

The comparison uses the same method as version control tools: it finds the longest parts the two texts share and marks the rest as added or removed.

Private by design

Contracts, code and private documents never leave your device: the comparison runs in your browser.

Privacy

This tool runs in your browser, on your own device. Your files and text are not uploaded to our server and we cannot see them. When you close or reload this tab, they are cleared, along with the results.

Frequently asked questions

Can I compare files?

Open each file, copy its text and paste it into the boxes. For Word files, use Word to text first.

Why is a whole line marked as changed?

In line mode, one changed character changes the whole line. Switch to word by word to see the exact words.

Is my text uploaded?

No. The text stays in your browser and is never sent anywhere.

Can I swap the two sides?

Yes. Click Swap the two texts.