Free Online Text Compare Tool

Loading shared content...

One Line Compared Against Several Lines

The left side keeps a whole paragraph on one line. The right side breaks it apart, inserting a blank line, a short line, another blank line and the start of the next paragraph. The comparison pairs the one left line with all five right lines as a single modified block, which is why the connector spans a tall region on the right and a single row on the left. This is the case that trips up naive diff tools: they report a deletion followed by an insertion, while a block-aware comparison keeps the block together.

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.