Text Diff Viewer

Compare differences between two texts

Comparing two texts line by line

A diff shows exactly which lines changed between two versions of a text. Reading two versions side by side and spotting the differences by eye stops being practical past a few dozen lines. Paste the old version into "Original", the new one into "Modified", and this tool highlights every added and removed line for you.

Along with the highlighted output you get counts of added, removed and unchanged lines. That is useful for checking that an edited configuration file did not silently lose a line, for reviewing what actually changed between two drafts, or for finding the difference between two log excerpts. If the two texts are identical the tool says so explicitly, so an empty result is never ambiguous.

The comparison runs in your browser and neither text is uploaded. Source code, internal documents and contract drafts — the kind of content you would not paste into an unknown web service — can be compared here directly. No account and no installation are required.

Frequently asked questions

Can it diff by character instead of by line?
This tool compares line by line. If your lines are long paragraphs, breaking them at sentence boundaries first makes the diff much easier to read.
How large a text can it handle?
As much as your browser's memory allows. A few thousand lines is normally no problem.
Can I use it for source code?
Yes. Line-level highlighting is exactly what code review needs, and since nothing is uploaded it is safe for internal code.
Is the text I paste stored?
No. Everything happens inside your browser and no data is sent to a server.

Related tools