Text Diff Checker

Compare two texts — added lines green, removed red.

What you can diff

Paste two versions of anything textual: code before and after a change, two config files, a contract revision, an article rewrite. Lines present only in the second text are marked as additions; lines only in the first are removals; everything else passes through unchanged so context stays readable.

The comparison uses the classic longest-common-subsequence algorithm — the same approach behind git diff — so moves and rewrites are shown the way you expect from version control.

Nothing is uploaded: both texts stay in your browser tab, which makes this safe for confidential code or documents.

FAQ

Can it diff word-by-word inside a line?

This tool compares line by line, which is what git does by default. For inline character-level detail, a code editor with inline diff is more readable.

Does blank line or trailing space matter?

Yes — a line with a trailing space differs from one without. Paste content as-is; the diff shows exactly what changed, including invisible characters.