Text Diff Checker
Compare two versions of a text and see exactly what changed: additions are highlighted in green and deletions in red (strikethrough). Choose to compare word by word or line by line, depending on what you need to review.
How it works
- Paste the original text into the first panel and the edited version into the second.
- Choose the comparison mode: by words (to catch small changes within a sentence) or by lines (to compare full paragraphs or code blocks).
- The tool calculates the difference and shows a combined result, highlighting added text in green and deleted text in red strikethrough.
- Check the summary showing how many items were added and removed.
Use cases
- Review the changes between two versions of a contract, article, or document before approving them.
- Compare two drafts of an email or announcement to see exactly what was changed.
- Spot differences between two snippets of configuration or exported text.
- Verify a translator's or editor's changes before accepting them.
Use cases
- Review the changes between two versions of a contract, article, or document before approving them.
- Compare two drafts of an email or announcement to see exactly what was changed.
- Spot differences between two snippets of configuration or exported text.
- Verify a translator's or editor's changes before accepting them.
Common mistakes
- Using 'by lines' mode to compare a small change within the same sentence and not seeing exactly which word changed.Switch to 'by words' mode to catch fine-grained differences within a line or paragraph, instead of flagging the whole line as different.
- Comparing two texts with different line-wrapping (one reflowed into shorter lines) and expecting a clean result in line mode.In line mode, each line is compared as a whole unit, so a simple text reflow can mark entire lines as changed even when the content is nearly identical. Try word mode in that case.
- Mistaking the red highlighting for a tool error, when it actually just marks text removed relative to the original.Red strikethrough always indicates text that was in the original and is no longer in the edited version, not a problem with the comparison.
Frequently asked questions
Word-by-word comparison catches fine-grained changes within the same sentence or paragraph, ideal for reviewing writing. Line-by-line comparison treats each line as a complete unit, ideal for comparing paragraphs, lists, or code blocks.
Green highlights text that exists in the edited version but not in the original (an addition). Red strikethrough highlights text that existed in the original but was removed in the edited version.
Yes, it uses the open-source 'diff' library (jsdiff), widely used for computing text differences, and it runs entirely in your browser.
No. Both texts are processed and compared locally in your browser using JavaScript. They're never uploaded to an external server.
Alternatives
In the terminal, the diff command (or git diff for versioned files) compares whole files line by line with a similar approach. This tool lets you paste two loose text snippets and see the combined, highlighted result instantly, with no files to save and no git required.