About this tool

Compare two texts and highlight the differences.

Paste two versions of any text into the Text Diff tool and get an instant visual comparison. Insertions are highlighted in green, deletions in red, and unchanged text is shown normally. Useful for comparing contract drafts, code snippets, translated texts, or any two documents where you need to see exactly what changed between versions.

Example

Old: "Hello world" · New: "Hello there"

Diff: worldthere

How to use
  1. Paste the original text in the left panel.
  2. Paste the revised text in the right panel.
  3. Differences are highlighted immediately.
  4. Switch between inline and side-by-side view.
Features
  • Inline and side-by-side diff views
  • Green / red highlighting for additions / deletions
  • Word-level and character-level diffs
  • Works offline
  • No file upload needed
Frequently Asked Questions
What diff algorithm is used?+
A Myers diff algorithm implemented in JavaScript — the same approach used by most code review and version control tools.
Can I diff code?+
Yes. The tool works with any plain text including source code, but does not apply syntax highlighting.
Is there a size limit?+
For best performance keep each text under 50,000 characters. Larger texts may be slower.
Can I compare files?+
Paste file contents manually. Direct file upload is not supported; all processing stays in the browser.
Does it handle very long documents?+
Yes. The diff algorithm works on text of any length. Very long documents may take a second to compare.
Can I compare code snippets?+
Yes. Paste any code into either panel. The diff highlights exact character-level changes, useful for spotting a single altered constant.

Text Diff

← All tools
Loading…
Related tools
Find & Replace Word Counter Readability Score
Also available in: 🇪🇸 Español🇮🇳 हिन्दी