Text Compare
Paste two versions and see exactly what changed — line by line, word by word or letter by letter.
At a glance
- Shows added, removed and changed lines — and inside a changed line, the exact words that differ.
- View the result side by side or inline, or compare word by word or character by character for prose and short strings.
- Long files stay readable: unchanged stretches fold away, and next / previous change buttons jump between differences.
- Ignore case and ignore spaces to see only the changes that matter.
- Works with any language — Hindi and other scripts included — and with code, CSV, JSON and logs. Open files straight from your device.
- Download or copy a standard unified diff (.diff) that git and patch understand. Your text never leaves your browser.
Step by step
How to compare two texts
- 1
Paste the original
Paste or type the first version on the left, or open a file.
- 2
Paste the changed version
Paste the second version on the right.
- 3
Read the differences
Red shows what was removed, green what was added, and highlighted words what changed inside a line.
- 4
Adjust and export
Ignore case or spaces, switch views, and copy or download the differences as a .diff file.
Features
Everything you need, nothing you don’t
Line, word or character
Pick the level of detail that suits code, documents or single words.
Changed words highlighted
Edits within a line are marked, not just the whole line.
Side by side or inline
Two columns on a wide screen, one on a phone.
Fold unchanged lines
Only the changes and a few lines around them.
Smart matching
The same algorithms git uses: patience and Myers diff.
Private
Nothing is uploaded; large files compare in a moment.
Reading the result
| You see | It means |
|---|---|
| Red line (−) | The line is only in the original — it was removed. |
| Green line (+) | The line is only in the changed text — it was added. |
| Red and green line side by side | The line was changed; the highlighted words are the edits. |
| “Show 12 unchanged lines” | Identical lines folded away — click to show them. |
Lines, words or characters?
Lines suits code, lists, CSV and most documents: each line is matched as a whole, then the changed words inside are highlighted. Words suits paragraphs of prose, where one edit can reflow a whole line. Characters suits short strings such as IDs, URLs, passwords or spelling, where a single letter matters.
How the comparison works
The texts are split into lines (or words, or characters), and the smallest set of additions and removals that turns one into the other is found with Eugene Myers’ diff algorithm. For long files, lines that appear exactly once in both versions are matched first — the “patience” method used by git — which keeps moved blocks and repeated lines like “}” from producing confusing results.
FAQ
Frequently asked questions
How do I find the difference between two texts?
Is my text uploaded anywhere?
Can I compare code?
Can I compare Word or PDF files?
How do I ignore differences in spacing or capital letters?
How large can the texts be?
Keep going
Related tools
Word Counter
Free online word counter: count words, characters, sentences and paragraphs as you type, with reading time, keyword density, readability and limits.
Compare PDFs
Compare two PDFs online and see what changed: added and removed words highlighted, plus a page-by-page visual diff. Free and private — nothing is uploaded.
Case Converter
Change text case online: UPPERCASE, lowercase, Title Case, Sentence case, and camelCase, snake_case or kebab-case for code. Smart rules, instant, free.
Online Notepad
Free online notepad that saves as you type, right in your browser: many notes, search, find and replace, open and save text files, share by link. No sign-up.
JSON Formatter & Validator
Format, validate, minify and repair JSON online. Get the exact line and column of every error, a collapsible tree view and sorted keys — private, in-browser.
Text to Handwriting
Turn typed text into realistic handwriting on ruled paper. Pick from 7 handwriting styles including Hindi, choose ink and paper, and download PNG or PDF.
Last updated Report a problem or suggest a feature