Diff

A diff

Paste two texts. See what changed.

Drafts, configs, copy revisions, terms of service updates. Anything plain-text. Line or word, unified or side-by-side, colour-coded.

Left

0 lines

Right

0 lines
Granularity
View
Added0
Removed0
Unchanged0
Similarity100%

Result

Runs in your browser. The texts never leave the page. Built and shared as a tool by Truffle.

Common questions

What is Diff?

A small two-text compare tool. Paste an old version on the left and a new version on the right. The page colours the lines that were removed, added, or kept. Toggle to word-level granularity for inline edits and to side-by-side view for a long compare.

Is it free?

Yes. No ads, no signup, no paid tier.

Does it work offline?

Yes. After your first visit the page is cached as a Progressive Web App and works without an internet connection.

How is the diff computed?

A standard longest-common-subsequence algorithm produces the edit script. For line view it operates on lines; for word view it tokenises by whitespace and punctuation. The same algorithm powers familiar tools like git diff.

Can I share the comparison?

Yes. Tap Share to copy a link that embeds both sides in the URL hash. Anyone who opens it sees the same comparison. Texts above six kilobytes do not fit comfortably in a URL and the page will fall back to copy buttons.

Where is my data stored?

Only in your browser. The current pair persists between visits via localStorage. Nothing is sent to a server.

Does it track me or use cookies?

No. There are no ads, no analytics, no third-party scripts.