Text Diff
Compare two blocks of text side-by-side or unified diff. Line and word-level highlighting using Myers algorithm. Runs in your browser — text never uploads.
Zero uploads. Diff is computed in your browser using Myers' diff algorithm.
Original (left)
Modified (right)
Text Diff Tutorial
What This Does
Paste two versions of the same text. The tool runs Myers' diff algorithm (the same algorithm used by git diff) and highlights added, removed, and changed lines side-by-side.
Word-Level Highlighting
When a line is changed (not entirely added or removed), the tool zooms in and highlights just the words that differ. This makes it easy to spot a typo in a long sentence.
Common Use Cases
- Compare two config files before pushing changes
- See what changed in a copy/paste from a pull request
- Review legal or contract text edits
- Verify log entries are identical across servers
- Debug content that looks "the same" but isn't (invisible characters, different line endings)
Options
- Ignore whitespace — compare as if all runs of spaces/tabs were single spaces, and trailing whitespace was stripped
- Ignore case — Uppercase and lowercase letters are treated as equal
- Word-level highlight — Inside changed lines, highlight only the differing words
Views
- Side-by-side — left shows original, right shows modified, aligned
- Unified — one column with
+/-markers, likegit diff
Privacy
All diff computation runs in your browser's JavaScript. No text is sent anywhere. This matters for diffing source code, legal docs, or anything sensitive.