⚡ Text Diff Tool

See exactly what changed between two texts — with syntax highlighting and regex search.

Paste two versions of a document, piece of code, or any text and instantly see every addition, deletion, and change — highlighted clearly, line by line. Text Diff supports side-by-side and unified views, syntax highlighting for a dozen languages, and regex-powered search across the diff.

Share diffs via a compressed URL, export to HTML, or print directly. Everything runs in your browser — your text never leaves your machine.

Fast. Private. Works offline.

User Manual

Overview

Text Diff uses diff.js for computing differences and highlight.js for syntax highlighting. Shareable URLs use lz-string for compression. No data is sent to any server.

Getting Started

  1. Paste your original text into the Original panel.
  2. Paste the modified text into the Modified panel.
  3. The diff is computed and displayed immediately.

You can also drop text files onto each panel. Click ✕ clear inside a panel to reset it.

Display Modes

Display Options

OptionEffect
Line #Show or hide line numbers
WrapWrap long lines instead of scrolling horizontally
Ignore WSIgnore whitespace differences (spaces, tabs)
Ignore CaseTreat uppercase and lowercase as identical
Ignore BlankIgnore blank (empty) lines when computing the diff

Syntax Highlighting

Use the language dropdown to apply syntax colouring to your diff. Options include:

Navigating Changes

Regex Search

Use the search bar to find matches across the diff using a regular expression.

Statistics

Below the panels, the status bar shows:

Sharing and Export

Privacy

Text Diff processes everything locally. No text is transmitted to any server. Shared URLs encode the text client-side using lz-string compression — the data travels in the URL itself, not through a server.