About Diff Checker
Paste two versions, or open two files, and see them lined up: unchanged lines plain, removed lines marked with a minus, added lines with a plus, and in every edited line the exact characters that differ. Long stretches that did not change are folded away so the changes stand out; turn on "Show all unchanged lines" to read everything.
Ignore case or whitespace changes when they are noise, and compare JSON by its content: both sides are formatted and their keys sorted first, so a reordered config file shows only the values that really changed.
How it works
- Both texts are split into lines and lined up with a longest-common-subsequence diff, which finds the fewest lines to remove and add to turn one into the other.
- A removed line followed by an added one is shown as a single edited line, and within it the differing characters are found the same way. A character here is what you see, so emoji and accented letters are never split.
- With "Compare as JSON" on, each side is parsed and rewritten with sorted keys and two-space indentation before the comparison, so formatting and key order do not count as changes.
- The comparison runs in a background worker and stops after five seconds, so two very different texts cannot freeze the page.
Questions
Why is a whole line highlighted rather than a few characters?
When most of a line was rewritten, scattered character highlights are harder to read than the line marked as a whole, so the tool marks the whole line. Lines longer than 2,000 characters are also marked whole.
Does "Compare as JSON" change my data?
Only how it is written for the comparison. Keys are sorted and numbers are written in their shortest form, so 1.0 and 1 count as the same value. Numbers are read as JavaScript reads them, so two integers longer than about 15 digits that differ only in their last digits can count as equal, and a key written twice in one object keeps only its last value. Your text in the input boxes is not changed.
How large can the texts be?
Up to 1 MB each. Very different texts may hit the five-second limit, and then you are asked to compare shorter sections. Up to 2,000 rows are drawn; the summary still counts every change.
Are my files uploaded?
No. Files are read and compared inside this browser tab and are never sent anywhere.
Everything you enter here is processed in this browser tab. Nothing is uploaded, logged or shared. How privacy works here.