Skip to content
AZ Tools

Text Diff Viewer

Paste two versions of any text and instantly see what changed — added lines highlighted green, removed lines red, and unchanged context in between. Switch between line-mode (for code, configs, lists) and word-mode (for prose). Ignore-whitespace toggle handles trailing-space and indentation drift. Runs entirely in your browser; pasted text never leaves the page.

+ 0− 0
Diff

No differences detected.

How to use

  1. Paste the original text on the left, the new version on the right.
  2. Choose line-mode for code/configs, word-mode for prose.
  3. Toggle 'ignore whitespace' if formatting changed but content didn't.
  4. Read the inline diff and added / removed counts.

Frequently asked questions

Is the diff stored anywhere?
No. Diffing happens locally with the 'diff' library — neither side of the text leaves your browser.
Word vs line mode?
Line mode shows full lines as add/remove blocks — best for source code, JSON, config files. Word mode highlights individual word changes within a paragraph — best for prose, docs, captions.
What does 'ignore whitespace' do?
In line mode, it treats lines as equal if they differ only by leading/trailing spaces or tabs. Useful when comparing reformatted code.
How big can the inputs be?
Tens of thousands of lines work, but the diff is O(n²) so very large files will get slow. For huge files, prefer 'git diff' or a desktop tool.

Guides on this topic

Related tools