Skip to content

Text Compare

Compare two texts and see every added, removed and changed line highlighted.

0 lines

0 lines

About Text Compare

Spotting what changed between two versions of a document by reading them side by side is slow and unreliable — the eye skips over a single altered word or a line that moved. A diff does the comparison mechanically and shows only what actually differs.

This tool aligns the two texts, marks each line as added, removed, changed or unchanged, and highlights the individual words that differ within a changed line. Case, whitespace and blank lines can each be ignored, and the result can be copied or downloaded as a standard unified diff.

Frequently asked questions

What counts as a changed line?

When a removed line and an added line line up, they are shown as one changed row with the differing words highlighted, rather than as two unrelated edits.

Can it handle large files?

Yes. The comparison uses an algorithm whose cost scales with the number of differences, so two nearly identical files of several thousand lines compare in milliseconds.

Is my text uploaded anywhere?

No. The comparison runs entirely in your browser, which is what makes it safe to paste a contract, a config file or production logs into it.

Related tools