At One Place

Text compare

Compare two blocks of text and see which lines were added, removed or changed.

How it works

Paste two versions of something and see what changed between them, line by line. Added lines, removed lines and unchanged lines are marked separately.

This is a line-level diff computed from the longest common subsequence, which is the same basic approach version control uses. It finds the largest set of lines the two texts share in order, and everything else is an insertion or a deletion.

Whitespace-only differences are the usual reason two apparently identical files diff as changed. The ignore-whitespace option handles that.

This tool runs entirely in your browser. Nothing you enter is sent to a server, logged or stored, and the page keeps working with the network disconnected.

Common questions

Why do identical-looking lines show as changed?
Usually trailing whitespace, or different line endings between the two sources. Turn on ignore whitespace to confirm.
Does it compare word by word?
No, this compares line by line, which is what you want for lists, code and configuration. A changed line shows as one removal plus one addition.

Related pages