Micro Tool Yard logo
Tools
+1 added1 removed1 unchanged
1The quick brown fox
2jumps over the lazy dog.
1The quick brown fox
2leaps over the lazy dog!
Ad Slot

How it works

  1. Paste your original and changed text

    Two text areas, side by side — no file upload required.

  2. Choose line or word diff

    Line diff shows a side-by-side comparison; word diff shows inline changes.

  3. Review additions and removals

    Added lines/words are highlighted in green, removed ones in red.

Diff Checker compares two blocks of text and highlights exactly what changed, using the Myers diff algorithm — the same algorithm that powers git diff. Line diff mode shows your original and changed text side by side, with added lines highlighted in green and removed lines in red. Word diff mode instead shows a single unified view with individual word-level changes marked inline, which is often easier to scan for small edits within a single paragraph or sentence.

Everything runs locally in your browser as pure text computation — no text you paste is ever uploaded or sent to a server.

Myers' algorithm frames diffing as a shortest-path problem: picture a grid where moving right means "delete a line from the original," moving down means "insert a line from the changed version," and moving diagonally (free) means "this line is unchanged in both." Finding the smallest possible diff becomes finding the shortest path across that grid — which is why the output is a genuinely minimal edit script, not just "any" set of changes that happens to work. See the diff algorithms guide for a deeper walkthrough of how this actually works.

Word diff mode uses the exact same algorithm, just tokenized by word instead of by line — which is why it's the better choice for a single long line (a minified script, a long sentence) where line-level diffing would only ever be able to say "this whole line changed," even if just one word inside it actually did.

This is a plain-text tool by design — paste raw text, code, config files, log excerpts, or anything else that's fundamentally a sequence of characters. If you specifically need to compare two JSON documents by their structure (rather than their literal text, which would flag a reordered key as a change even if the data is identical), the JSON Diff Checker handles that case with a diff algorithm tuned for structured data instead.


FAQ

What algorithm does this diff checker use?
The Myers diff algorithm — the same well-established algorithm behind git diff — which finds the shortest sequence of insertions and deletions that turns the original text into the changed text.
What's the difference between line diff and word diff?
Line diff compares your text line by line and shows both versions side by side, with unmatched lines highlighted. Word diff compares individual words and shows one unified view with deleted words struck through and inserted words highlighted.
Is my text sent anywhere?
No. The diff is computed entirely in your browser — nothing you paste is ever uploaded.
Is there a size limit?
There's no hard limit, but very large documents (tens of thousands of lines) may take longer to compute since diffing currently runs on the main thread.