Text Diff

Compare two pieces of text with line-by-line and character-level diff highlighting in side-by-side or unified view.

How to compare two texts

  1. Paste the original text on the left and the changed text on the right, or open or drop a file on each side. Dropping two files at once fills both.
  2. Read the differences: added lines in green, removed lines in red, and the exact characters that changed highlighted within each line.
  3. Switch between side-by-side and unified views, and turn on Ignore whitespace or Ignore case to hide changes that don't matter.
  4. Check the stats for how many lines were added, removed, and unchanged.

Compare anything made of text

Use it for contract revisions, two versions of a config file, code that isn't in Git, translated strings, SQL queries, or two API responses. Character-level highlighting shows the single changed digit in a long line, which a quick read would miss. Ignore whitespace helps when a file was re-indented, or when line endings changed between Windows and macOS.

Frequently asked questions

Is my text uploaded?

No. The comparison runs in your browser, so contracts, source code, and config files with secrets stay on your device.

Can I compare JSON while ignoring key order?

A text diff treats reordered keys as changes. Use JSON Diff, which compares the structure instead.

Can I compare images or PDFs?

Yes, visually, with Image & PDF Diff. To compare the text of two PDFs, extract it with Image OCR and paste it here.

Related tools

More in Text & Code Tools · All 73 tools