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.
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.
You can also drop text files onto each panel. Click ✕ clear inside a panel to reset it.
| Option | Effect |
|---|---|
| Line # | Show or hide line numbers |
| Wrap | Wrap long lines instead of scrolling horizontally |
| Ignore WS | Ignore whitespace differences (spaces, tabs) |
| Ignore Case | Treat uppercase and lowercase as identical |
| Ignore Blank | Ignore blank (empty) lines when computing the diff |
Use the language dropdown to apply syntax colouring to your diff. Options include:
Use the search bar to find matches across the diff using a regular expression.
Below the panels, the status bar shows:
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.