Skip to content
WebTricks

Text diff

Compare two blocks of text line by line and see additions and deletions highlighted. Nothing leaves your browser.

+21
line one
line two
+ line 2
line three
+ line four

About this text diff

Paste two versions of text and see a line-by-line diff with additions and deletions highlighted, plus a running count of each. Everything stays in your browser.

Common uses

Compare two API responses, spot what changed between config or .env versions, review edits to copy or documentation, or check what a tool rewrote in a file — all without committing anything or leaving the page.

FAQ

Is this a line diff or a character diff?

It is line-based — it finds the longest common sequence of lines, then marks the remaining lines as added or removed.

Can I diff code?

Yes, any plain text works. It stays responsive on large inputs but is tuned for everyday snippets, configs and logs.