How to read the result
- The two number columns are the line numbers in the original and in the changed text.
- A line marked
-exists only in the original. A line marked+exists only in the changed text. - An edited line shows up as a
-line followed by a+line. - Three unchanged lines are kept around each change for context. The rest are folded into a single “unchanged lines” row unless you tick “Show all lines”.
What the options do
“Ignore whitespace differences” treats lines as equal when they differ only in indentation, trailing spaces or runs of spaces. Use it after a reformat or a tabs-to-spaces change, when you care about the content and not the layout.
“Ignore case” treats upper and lower case as the same, which helps with SQL keywords or header names.
The comparison works on whole lines and finds the longest set of lines the two texts share. It does not highlight the changed words inside a line.
Questions
Can I compare two JSON files?
Yes. Run both through the JSON formatter with “Sort keys” first. Otherwise a different key order or indentation shows up as changes.
Do Windows and Unix line endings count as a difference?
No. Both \r\n and \n are treated as a line break.
Is there a size limit?
Texts of a few thousand lines compare instantly. The limit depends on how many lines differ, because identical lines at the start and end are skipped before the real comparison.