Skip to content

Compare two texts

Find the differences between two texts or code versions: added and removed lines highlighted, whitespace can be ignored. Nothing is uploaded.

  • Free
  • No sign-up
  • No file uploaded
  • Windows, Mac, Android, iPhone

Loading the tool…

About this tool

Paste two versions of a file, config or text: added lines show in green, removed lines in red. Handy to review a change without Git, and safe for confidential code.

How to use

  1. Paste the original text on the left.
  2. Paste the changed text on the right.
  3. Read the differences, then copy the diff if needed.

Common problems and fixes

Everything is marked as different

Line endings (Windows/Mac) or indentation differ: tick “Ignore whitespace differences”.

A moved line appears twice

A line-by-line diff shows a move as a removal then an addition: this is expected.

“Text too long”

Compare excerpts of at most 3,000 lines, or use git diff for very large files.

Frequently asked questions

Are my texts uploaded?

No, the comparison is done by your browser.

How do I read the result?

+ marks an added line, - a removed line, and lines with no sign are unchanged.

Are changes within a line shown?

The comparison is line by line: a modified line appears as removed then added.

Can I compare code?

Yes, any text: code, JSON, CSV, config or prose.

Related searches

Still stuck?

Ask on the forum: the category, the tool, your device sheet and the test result will be filled in for you.