Text diff
Compare two versions of text. See which lines were added, removed or changed. Files stay on your device.
Loading comparison…
How to use
Text diffPaste the original and revised text, or open a local UTF-8 file in either editor.
Choose whether to ignore spaces and tabs, then review the comparison.
Switch between Side by side and Unified. Unchanged lines stay folded, and Previous/Next change moves through the edits.
What does the comparison include?
Text diff compares lines and labels additions, removals and changes; color is an extra cue.
CRLF,CRandLFline endings compare alike.- Trailing blank lines remain meaningful.
- Ignore spaces and tabs changes the comparison, not either original text.
Limits and privacy
- Each version: up to 100,000 UTF-16 code units and 5,000 lines.
- Local files: files above 400,000 bytes are rejected before reading.
- Processing: a browser worker with time and complexity limits.
Input and output stay in your browser. Binary comparison and patch export are not supported.