Compare two texts online

This free text comparison tool (also known as a diff checker) finds the differences between two texts or documents. Paste both versions, press Compare!, and every added, removed, or changed line is highlighted side by side — with word-level highlighting inside changed lines so even small edits stand out. It works with plain text, source code, essays, contracts, articles, or any other content.

Features

What the comparison looks like

Side-by-side diff view: two text panels with line numbers, changed words like 'brown' and 'red' highlighted in blue, and an added line marked on the right
Side-by-side view — both texts are shown next to each other with line numbers. Changed words are highlighted inside each line, and lines that exist on only one side get an empty placeholder row on the other.
Aligned diff view: each pair of lines stacked on a dark background, tokens padded into shared columns, changes colored blue on top and orange below, with a gap symbol for missing tokens
Aligned view — each pair of lines is stacked and the tokens are padded into shared columns, so substitutions line up vertically (colored per side). Tokens missing from one side are shown as and grouped tokens are joined with ·.

Frequently asked questions

Is my text uploaded to a server?

No. The comparison runs entirely in your browser using JavaScript. Your texts never leave your device and nothing is stored or uploaded.

How do I compare two texts?

Paste the first text into the left box and the second text into the right box, then press Compare!. Differences are highlighted side by side, and you can jump between them with the navigation arrows.

Is there a limit on text size?

There is no fixed limit. Because the diff runs locally in your browser, very large texts are only limited by your device's memory and speed.

Is the text comparison tool free?

Yes, the tool is completely free to use, with no sign-up or installation required.