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 toolThis 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
Paste the changed text
Run and read + / − rows
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
- Enter what you haveType or pick your original text, changed text. Nothing is submitted anywhere.
- It runs in this tabThe calculation happens on your device, using your browser's own data.
- 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.