Compare by
Original
Changed
0 added 0 removed

Diff is computed in your browser (LCS). Nothing is uploaded.

A text diff checker for seeing exactly what changed between a "before" and an "after" version of any text. Paste the original on the left and the changed text on the right, and it matches them with the LCS (longest common subsequence) algorithm, highlighting removed parts in red and added parts in green. You can compare at three granularities: line, word, or character. Line mode shows additions and deletions per line with `+`/`-` gutters like a Git diff, ideal for config files and code. Word mode reveals which words were swapped in prose, and character mode catches single-character typos and subtle differences down to one glyph. Turn on "Ignore case" to treat `Hello` and `hello` as the same, and "Ignore whitespace" to disregard indentation, extra spaces, and line-ending differences so you compare just the content. Counts of additions and deletions appear at the top so you can gauge the size of the change at a glance, and a "Swap" button flips the two sides entirely. Your chosen granularity and ignore options are saved in your browser so the next visit starts with the same settings (the pasted text itself is not stored). Importantly, the text you enter is never uploaded, stored, or sent to a server — all computation happens with JavaScript entirely inside your browser, so contract revisions, unreleased drafts, and internal documents you can't share stay on your device. Note that this tool focuses on plain-text diffing: it does not read formatted files like Word or PDF directly, compare three or more versions at once, or export a patch (unified-diff) file.

How to use

  1. Paste the texts you want to compare into "Original" on the left and "Changed" on the right.
  2. Pick the granularity (line / word / char). Turn on ignore case or whitespace if needed.
  3. Additions show in green and deletions in red. Your text is never sent anywhere.

FAQ

Is the text I paste uploaded anywhere?

No. All diff computation happens with JavaScript inside your browser, and the text is never uploaded, stored, or sent to a server. Contracts and unreleased drafts you can't share stay entirely on your device.

When should I use line, word, or character mode?

Line mode suits code and config files where changes are per line; word mode is best for seeing which words changed in prose; character mode catches single-character typos and subtle glyph-level differences.

Can I ignore indentation or whitespace differences?

Yes. "Ignore whitespace" disregards indentation, extra spaces, and line-ending differences so only the content is compared. "Ignore case" similarly treats upper- and lower-case as the same.

Can it compare Word or PDF files directly?

No. This tool is for plain text. For Word or PDF, copy the text out and paste it into the two boxes. Formatting differences such as fonts and colors are not part of the comparison.

Will the diff break on special characters or HTML?

No. Pasted text is escaped for display, so even text containing HTML tags or symbols is shown safely without being interpreted as markup. Surrogate pairs (emoji, etc.) are handled as single characters in character mode.