Text Comparison

Compare text online to instantly find differences between strings. This free text comparison tool is fast, accurate, and perfect for coding, data analysis, and content review.

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.
Files never leave your device. Privacy & limits
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.

Frequently Asked Questions About Online Calculators

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.

How do I avoid flagging lines that only changed due to wrapping or spacing?

Open the options to ignore whitespace. This stops the tool from marking every re-wrapped paragraph as a massive deletion and addition. Keep whitespace checking on when you are reviewing source code or exact output strings.

What settings should I use for a copy edit versus a code merge?

For code merges, use a line-level diff, leave case sensitivity on, and ignore whitespace only if the formatter changed tab and space alignment. For a copy edit, switch to word-level to see which phrases were rephrased, and consider turning off case sensitivity if you are not checking exact URL or variable names.