Text Compare: Find Differences Between Two Texts
Paste the old and the new version – removed text shows struck through with −, added text underlined with +. Nothing is uploaded.
How it is calculated
How the text compare works
The tool splits both texts into units – lines, words or characters – and finds the longest common subsequence. Anything only in text A is removed, anything only in text B is added. It uses Eugene W. Myers’ algorithm (1986), the same idea behind diff and Git, which finds the smallest possible number of changes.
Similarity score
Similarity = 2 × matching units ÷ (units in A + units in B). Example: “The dog barks” and “The dog sleeps” share 2 of 3 + 3 words → 2 × 2 ÷ 6 = 67%. In word mode, spaces are not counted as words.
Readable without colour
Removed text is wrapped in <del> (struck through, marked −), added text in <ins> (underlined, marked +), so the result also works for colour-blind users, in print and with screen readers. “Differences as text” gives the same result to copy: in line mode with +/− at the start of each line, otherwise in the style [−old−]{+new+}.
Limits
Everything runs in your browser. To keep it fast, each text can have up to 100,000 characters and 20,000 units. With very many changes (over 2,000), the differing middle part is summarised roughly as removed/added – switch to line mode in that case.
Frequently asked questions
Are my texts stored or uploaded?
No. Both texts stay in your browser and are not added to the address bar. Only the options (mode, checkboxes) are part of the link.
Which mode should I use?
Lines for lists, code and tables, words for prose such as contracts or articles, characters for single typos, names or numbers.
Why is a changed line shown as removed and added?
A diff only knows insertions and deletions, so a changed line is “old line removed + new line added”. Switch to words or characters to see what changed inside the line.
Can I compare Word or PDF files?
Not directly – copy the text from both documents and paste it into the two boxes. Formatting such as bold or font size is not compared, only the text.
Sources and legal basis
- Eugene W. Myers: An O(ND) Difference Algorithm and Its Variations, Algorithmica 1 (1986)
- WHATWG HTML Living Standard – Edits (ins, del)
- GNU Diffutils Manual (Optionen -i, -b)
As of:
Related tools
- Character Counter and Word CounterCount characters with and without spaces, words, sentences, paragraphs and reading time – live, with limits for X, Instagram, TikTok, LinkedIn, SMS and more.
- Hashtag Counter & Instagram Caption FormatterCount hashtags and @mentions, spot duplicate hashtags and clean up your caption: move hashtags to the end and keep line breaks. Free and private.
- Lorem Ipsum GeneratorFree lorem ipsum generator: paragraphs, sentences or an exact word count, start with “Lorem ipsum dolor sit amet”, optional HTML paragraph tags, one-click copy.
- Case ConverterConvert text to UPPERCASE, lowercase, Title Case, Sentence case, camelCase, snake_case or kebab-case. Free, instant and private – runs in your browser.
- Fancy Text GeneratorTurn text into bold, italic, cursive, gothic and 20+ other fancy fonts to copy and paste into Instagram, TikTok or Discord – with a note on accessibility.
- Image to text converterConvert an image to text: copy text from photos, scans and screenshots. OCR for English, German, French, Spanish and Portuguese – in your browser, no upload.