Text Compare
Compare two texts line by line and see added, removed and unchanged lines with a count of each. Limit of 3,000 lines per side. Free to use.
About Text Compare
Text Compare shows what changed between two versions of a text, line by line: lines added, removed and unchanged, with a count of each.
Ignore spacing
Tick the option to ignore spaces at the start and end of lines, so indentation changes do not count.
Line by line
If a whole paragraph is one line, changing one word marks the whole line as changed. Moved lines show as removed in one place and added in another.
Good for
Seeing what an editor changed, comparing two snippets or config files, and checking students' revisions.
Limit
Up to 3,000 lines per side. There is no word-level highlighting.
Private
Your text stays in your browser. Nothing is uploaded.
How to use Text Compare
- Paste the original text into the Original text box.
- Paste the changed text into the Changed text box.
- Leave Ignore leading/trailing spaces on to skip whitespace-only changes, or clear it for an exact comparison.
- Press Compare and read the counts and the + and - lines.
Help & FAQ
How large a text can we compare?
The page states a limit of 3,000 lines per side.
Does it compare word by word or line by line?
Line by line. If you change one word in a long line, the whole line shows as removed and a new line as added.
What does Ignore leading/trailing spaces do?
It treats lines that differ only by spaces at the start or end as equal. In our test, an indented line four matched a plain line four with it on, and did not with it off.
How are moved lines shown?
As one removed and one added line. Our a, b, c against c, b, a test gave 1 unchanged, 2 added and 2 removed.
How are duplicate lines handled?
Each line is matched once. x, x, y against x, y gave 2 unchanged and 1 removed in our test.
Can we compare code?
Yes, for pasted code. Turn off Ignore leading/trailing spaces if indentation matters, as in Python or YAML.
Can it compare two Word documents?
Not directly. Copy the text of each document into the boxes. Formatting such as bold or tables is not compared.
Why does a whole paragraph show as changed?
Because the comparison is by line. Put each sentence on its own line to see smaller edits.
What does Identical mean?
Yes means no line differs after the chosen whitespace setting. No means at least one line was added or removed.
Does it ignore case or blank lines?
No. Those options are not offered. Blank lines count as lines and case differences count as changes.
Can we download the result?
The page does not offer a download. Copy the marked lines from the result if you need to keep them.
Is our text uploaded?
No. The comparison runs in your browser and the text is not sent for processing.