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.
No differences detected.
How to use
- Paste the original text on the left, the new version on the right.
- Choose line-mode for code/configs, word-mode for prose.
- Toggle 'ignore whitespace' if formatting changed but content didn't.
- 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
JSON Diff
Compare two JSON documents structurally — see exactly which keys were added, removed, or changed.
Character & Word Counter
Count characters, words, sentences, lines, and bytes in real time.
Word Frequency Counter
Count how often each word appears in your text — with stopword filtering, minimum length, and CSV export.
Remove Line Breaks
Join wrapped lines back into clean, flowing text — strip the hard line breaks you get when copying from PDFs or emails, while keeping real paragraphs.
Word Wrap — Reflow Text to a Column Width
Hard-wrap text to a fixed line width, breaking at word boundaries, in your browser.
Text Repeater
Repeat a word, line or block of text any number of times — joined by a new line, space, comma, nothing, or your own separator.