Text Comparison

Two drafts of the same text rarely differ in only one place, so this page lets you choose how finely to look: whole lines for code and logs, words for a rephrased sentence, single characters when you are hunting a typo. The change count arrives before you read a word of it, so a one-letter edit and a rewritten section are easy to tell apart.

Text A - Original Document
Characters: 0
Words: 0
Lines: 0
Text B - Modified Document
Characters: 0
Words: 0
Lines: 0
Import from URL Load plain-text pages directly when the site allows cross-origin access. If blocked, use Open File or paste instead.
Les fichiers ne quittent pas votre appareil. Confidentialité et limites
Embed tool Add this tool to your website Get embed code

Add this comparison tool to a related page with a visible FileCompare source link.

Questions fréquentes sur les calculateurs en ligne

Which diff granularity should I pick?

Lines for source code, logs and anything where a whole row appeared or disappeared; words when a sentence was rephrased; characters when you are checking a single letter, a stray space or one edited number.

Can it tell me how much changed, not just where?

Yes. The summary counts the changes and splits them into additions and deletions, which is what separates a touched comma from a rewritten passage.

Will my original file be changed?

The result is downloaded as a separate file. Keep your original until you have checked the Line, word and character diff.

What should I check before using the result?

Open the Line, word and character diff in the application that consumes it and spot-check the parts that matter to you; the original file stays untouched if you need to re-run with different options.

Is text comparison processed on a remote server?

No. All processing runs in your browser, so nothing is saved on our servers unless you choose to copy results elsewhere.

Can I find the difference between two text files side by side?

Yes. Paste or upload original and modified text, click Compare, and review color-highlighted additions and deletions in the diff panel.