Skip to content

Text diff checker

InspectExperimentalLimited support. Verify anything critical.

A text diff checker finds a longest common line sequence between an original and a changed version, then labels removed, added, and unchanged lines. It helps review configuration edits, code snippets, generated output, or prose without uploading either side to a collaboration service. The visual result includes explicit plus and minus prefixes so colour is never the only signal, and the complete unified-style output can be copied or downloaded.

Skip to the tool

This tool processes the values or files you choose on your device. They are not uploaded.

Output

Limits

  • Each side is limited to 800 lines and 1 MB.

Warnings

  • The current algorithm compares whole lines
  • not individual words or syntax trees.

Steps

Paste the original text

Put the baseline version in the left panel — whole lines, up to 800 per side.

Paste the changed text

Put the edited version on the right. Line breaks define comparison units.

Run and read + / − rows

Copy or download the unified-style output; every row has a textual plus, minus, or blank prefix.

How to use Text diff checker

Use stable line breaks

Line-oriented comparison is easiest to interpret when formatters have already normalized wrapping and indentation. A formatting-only change may otherwise look larger than the semantic edit. Example: changing beta to beta revised marks one removed line and one added line.

Accessible change markers

Every row includes a textual plus, minus, or blank prefix in addition to its visual treatment, preserving meaning in monochrome and copied output.

How it works

  1. Enter what you haveType or pick your original text, changed text. Nothing is submitted anywhere.
  2. It runs in this tabThe calculation happens on your device, using your browser's own data.
  3. Take the resultRead the line diff, then copy or download.

Worked example

Given: Original beta vs changed beta revised on the same line

Result: Unchanged alpha and gamma lines; one removed beta line and one added beta revised line

Implements a bounded longest-common-subsequence line comparison locally.

Basis
independent
Licence
MIT
Last reviewed

Frequently asked questions

Does the diff ignore whitespace-only changes?

No. Entire lines are compared literally, so indentation-only edits appear as a removal and an addition.

Can I compare word-level changes inside a line?

Not yet. The algorithm is line-oriented; wrap or reformat first if you need finer granularity.

Navigation

Type to search…

↑↓ navigate↵ selectEsc close