Diff Two Files Line
Compare two pasted text files line by line locally.
Compare two files, line by line
Spotting what changed between two versions of a config, a document, or a snippet is slow by eye. This tool compares two pasted texts line by line and highlights the differences, so additions and removals jump out instead of hiding in a wall of text.
A clear line diff turns “something changed” into “exactly these lines changed,” which is invaluable for reviewing edits and catching an accidental deletion. Paste the two versions and read the differences at a glance.
Line-by-line, kept local
It aligns the two inputs line by line and marks additions and removals, which is enough for configs and short snippets. Both texts are compared in your browser and never uploaded.
Frequently asked questions
How does the line diff work?
It compares the two texts line by line in order. Matching lines are kept, lines only in the first text are marked with -, and lines only in the second with +.
Why does one inserted line mark everything below it as changed?
The comparison is position by position, so an insertion shifts the lines after it. For large edits, use git diff or a full diff tool.
Does whitespace count?
Yes. Extra spaces or different line endings make lines count as different.
Related tools
Practical utilities for everyday web development work.