100% local — your data never leaves your browser

Text Diff — Compare Two Texts Online for Free

Compare two texts line by line and see the differences as a unified diff, right in your browser. Free and private: nothing is ever uploaded.

Instant Private Zero cookies

Original

Modified

Differences

Why compare texts online?

Two versions of a config file, a contract clause, a generated report — spotting what changed by eye is slow and error-prone. Paste both versions above and get an exact, line-by-line account of every removal and addition, instantly.

How it works

The two texts are split into lines and compared locally with the Myers algorithm — the same approach used by Git. The result is a unified diff with three lines of context around each change, ready to share in a ticket, a commit message or a code review.

Frequently asked questions

Is my text uploaded to a server?
No. Both texts are compared entirely in your browser with JavaScript. Nothing is sent over the network, which makes the tool safe for contracts, configs or any sensitive content.
What does the output format mean?
It is a unified diff, the format used by Git and code review tools: lines starting with - were removed, lines starting with + were added, and @@ headers give the line numbers, with three lines of context around each change.

Related converters