Text Compare (Diff)

See exactly which lines were added, removed or unchanged.

Also called: diff checker, compare text online, text difference.

FreeNo sign-upRuns in your browser
TEXT & WRITING

Text Compare (Diff)

See exactly which lines were added, removed or unchanged.

Runs locally in your browser
Ready. Fill in the fields above, then press Run tool.
Privacy note: this tool runs in your browser, so the text you enter stays on your device.

Find a tool

Loading tools…

Watch: how to use the Text Compare (Diff) (15 seconds)

Recorded on a phone, steps written on screen, no sound.

About the Text Compare (Diff)

Paste two versions of a text to see line by line what was added, removed or unchanged. Useful for contracts, essays, code and copied lists.

Choose to ignore upper/lower case or extra spaces so small formatting changes don't show as differences.

Both texts stay in your browser.

How to use the Text Compare (Diff)

  1. Add your inputFill in text A and text B.
  2. Pick the optionsignore upper/lower case and ignore extra spaces (the defaults suit most uses).
  3. Press Run toolThe result appears right under the button.
  4. Copy or download the resultCopy text results with Copy output; when the tool makes a picture or file, use its Download button.

This tool works inside your browser: what you enter stays on your device.

Example

A sample input and the result the Text Compare (Diff) gives for it (produced by the tool itself, not typed by hand).

Text A
Milk Bread Eggs Tea
Text B
Milk Butter Eggs Tea

Result:

1 line(s) only in A (marked -), 1 line(s) only in B (marked +)

  Milk
- Bread
+ Butter
  Eggs
  Tea

Good to know

What you need
You type or choose: Text A, Text B
Where it runs
In your browser, on your device.
Cost
Free, no sign-up.

Questions

Does it compare word by word?

It compares whole lines, and marks lines that changed.

Can I compare Word files?

Copy the text out of each file and paste it here.

Is my text uploaded?

No.

More tools in Text & Writing

See all Text & Writing tools