Skip to main content
SiteIndex
DeveloperReady to use

Text Diff

Compare two text blocks and highlight the exact additions, removals, and changes between versions.

Guide

Interactive workspace

No account required
Text Diff
0 added · 0 removed · 1 changed · 2 unchangedChange 1 of 1 · Keys: N next · P previous · Ctrl+Enter top change
SiteIndex
SiteIndex
JSON
JSON
Tools
Developer Tools

How to use it

  1. Paste the original text on the left.
  2. Paste the updated text on the right.
  3. Choose side-by-side or unified view, optionally show changes only, then download a patch if needed.
What is Text Diff?

Compare two text blocks and highlight the exact additions, removals, and changes between versions.

How it works

The browser aligns lines with a minimal-edit diff, pairs changed lines, and highlights changed words. Use a side-by-side or unified view, and hide unchanged context when needed.

Common uses
  • Compare configuration or source text after inserted or removed lines.
  • Review word-level changes and export a patch for another tool.
Limitations
  • Line alignment minimizes inserted and deleted lines; changed words are highlighted within paired replacement lines.
  • Downloaded patches include the complete compared text rather than contextual hunks.
Frequently asked questions
Will an inserted line misalign later comparisons?
No. Lines are aligned by a minimal-edit algorithm, so unchanged lines remain matched after insertions and deletions.
Can I download a patch?
Yes. Download .patch exports the full comparison as a unified diff.

Related tools