Text Diff
TextEverything runs locally in your browser — nothing is uploaded
Fill in both sides to compare
Put two versions of a text side by side and see exactly which lines changed, which were added and which were removed. Edits are aligned by minimal difference (longest common subsequence) rather than marking whole blocks as changed. Handy for config files, logs, code snippets and copy revisions.
Features
- Line-by-line comparison marking added, removed and unchanged lines
- Edits aligned by minimal difference (LCS), not whole-block marking
- Side-by-side panes with line numbers matching each original
- CRLF and LF line endings treated as identical — no walls of false diffs
- Very large inputs degrade gracefully with an explicit notice instead of freezing
How to use
- Paste the original on the left and the revision on the right
- The comparison updates as you type — no button needed
- Green marks additions, red marks deletions, grey is unchanged
FAQ
- The two texts look identical but a diff is reported. Why?
- Usually trailing whitespace or line endings. CRLF and LF are already treated as equivalent here, but an extra trailing space is still a real difference — just one that is hard to spot by eye.
- How are the changes aligned?
- A longest common subsequence algorithm finds the largest matching run between the two sides and treats the rest as insertions and deletions. That means only genuinely changed lines are marked, instead of everything after the first difference.
- What happens with very long texts?
- Diffing is O(n×m), so very large inputs fall back to a coarse "all removed, then all added" result. The page says so explicitly when that happens — the output is still correct, just not aligned to the minimal edit.
Related tools
Word Counter
TextCount Chinese characters and English words separately, alongside characters, lines, real UTF-8 bytes and reading time. Runs in your browser.
Text Cleaner
TextClean up a column pasted out of a log or spreadsheet: deduplicate, sort, drop blank lines, trim whitespace and strip line numbers, all in your browser.
Case Converter
TextConvert identifiers between eight naming styles. Words are split correctly first, so acronyms such as HTTPServer come out right, all in your browser.
Chinese Converter
TextConvert Chinese between simplified and traditional characters, leaning on common words first and the most usual form for the rest, all in your browser.
Regex Tester
TextTest a regular expression with live highlighting, capture groups and a replace preview, guarded against catastrophic backtracking. Runs in your browser.
Markdown Preview
TextWrite Markdown on the left and see it rendered on the right, with pasted HTML shown as text and images never fetched. Runs entirely in your browser.