Text Diff Viewer
Text
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.
The quick brown fox jumps over the lazy dog.The quick red fox leaps over the lazy dog. New line at end.
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.
Related tools
CSV Viewer & Sorter
View CSV / TSV data as a sortable, searchable table — open a file or paste rows, no spreadsheet required.
URL Slug Generator
Turn any text into a clean URL slug — strip accents, choose a separator, set a max length.
Markdown Table Generator
Paste CSV, TSV, or pipe-delimited data and get a properly aligned GitHub-flavored Markdown table.
Lorem Ipsum Generator
Generate placeholder text by paragraphs, sentences, or words.
Case Converter
Convert text between UPPER, lower, Title, camelCase, snake_case and more.
Character & Word Counter
Count characters, words, sentences, lines, and bytes in real time.