Free Online Text Compare Tool

Loading shared content...

Changes Surrounded by Blank Lines

Blank lines are the most common source of confusing output in a diff tool: they look identical, so they can be paired with almost anything. Here an added line and a removed line are separated from the changes above and below by empty rows. The comparison keeps each edit aligned with its own row and does not let the blank lines drag unrelated content into the same block, which is what produces the clean one-to-one bands you can see on both sides.

The sample text is already loaded in the side-by-side editors above. Edit either side to compare your own text, or swap sides to see the diff from the other direction.