Runs 100% in your browser — nothing is uploaded
Text & String

Text Diff / Compare

Compare two blocks of text line by line, word by word, or sentence by sentence, with additions and deletions highlighted.

Text Diff / Compare
Client-side

About this tool

Text Diff / Compare highlights exactly what changed between two versions of a document — a contract redline, a blog draft edit, a translated paragraph, or any prose you need to compare side by side. Paste the original into the left pane and the modified version into the right, and the tool highlights additions in green and deletions in red, inline.

Three comparison granularities are available. Line mode treats each line as a unit — ideal for comparing paragraphs or list-style content. Word mode diffs at the word level, so a single changed word inside a long sentence is highlighted precisely instead of flagging the entire line as different. Sentence mode splits text on sentence boundaries and diffs those chunks — useful for spotting rewritten sentences in an article without the noise of word-level fragmentation.

Under the hood this uses the same battle-tested diff library that powers Git's line-diffing, applied here to prose instead of source code. A stats line reports the number of additions and deletions at a glance, and the full diff can be copied as plain text with +/- prefixes.

Everything runs client-side in JavaScript — your text never leaves the browser tab, which matters when comparing confidential drafts, legal text, or unpublished content.

FAQ

What is the difference between line, word, and sentence diff modes?
Line mode compares whole lines and is best for paragraph-level or list changes. Word mode compares individual words, so a single word swap is highlighted precisely. Sentence mode splits text on sentence-ending punctuation and diffs those chunks.
Does this tool send my text to a server?
No. The diff is computed entirely in your browser using JavaScript. Nothing is uploaded.
Can I use this to compare code instead of prose?
You can, but the dedicated Code Diff tool is a better fit — it offers a character-level mode and a unified-diff export format tailored to source code.
How is "additions" and "deletions" counted?
Each highlighted chunk that was added or removed counts as one unit in the stats line, at whichever granularity is currently selected.
Is there a limit to how much text I can compare?
No hard-coded limit — it depends on your browser's available memory. Comparing multi-page documents works fine.