Everything shows as changed
- Why:
- Usually mismatched line endings. A file saved with Windows CRLF compared against one with Unix LF differs on every single line.
- Fix:
- Normalise line endings first, or enable "Ignore whitespace".
Programming
Paste two versions of a file or snippet to see a line-by-line comparison. Whitespace and case can optionally be ignored.
This tool runs entirely in your browser. Your input is never uploaded, stored or logged.
The comparison finds the longest common subsequence of lines — the largest set of lines appearing in the same order in both inputs. Everything in that set is unchanged; everything else is an addition or a removal. This is the same general approach the diff command uses.
Working line by line has a consequence worth knowing: a block of text that moved is reported as a removal in one place and an addition in another, because its lines are no longer in a common order. The content is identical, but its position is the thing that changed.
Ignoring whitespace or case changes only the comparison, never the output. Lines are normalised to decide whether they match, and then the original text is displayed — so a line that differs only in indentation is reported as unchanged while still showing you its real indentation.
Every example below is run against this tool in our test suite, so what it says here is what the tool actually does.
Last updated