Text Difference
Compare two texts and identify added or removed lines.
Your input is processed locally in your browser. It is not saved, logged, or sent with analytics.
0 chars
0 chars
Run: Ctrl/⌘ + Enter · Clear: Ctrl/⌘ + Shift + X
Line differences
Enter a value to begin.
What this calculator does
Produce an accessible line-by-line difference with additions, removals, and summary totals.
Inputs and what they mean
- Original text
- — text value.
- Changed text
- — text value.
How to use it
- Paste or enter content in the editor.
- Adjust any options for the result you need.
- Copy or download the locally processed output.
Formula
Uses a longest-common-subsequence line comparison. Added lines use + and removed lines use −, so meaning never depends on color alone.
Worked example
Compare two revisions
See one removed line and one added line with clear symbols.
Reading the result
The line differences appears in the output box and can be copied straight out. Nothing you paste leaves your browser.
Limitations and assumptions
Results depend entirely on the figures you enter and are rounded for display. They are for general information and education, not professional advice.