Text Compare

Compare two texts line by line, with clear additions and removals.

Runs on your device. Inputs are not uploaded or saved automatically.

Back to Play & Learn

Your result will appear here.

Keep experimenting

How to compare two text versions

Paste the earlier version into Original text and the newer version into Changed text, then choose Compare text. The result keeps matching lines in sequence and marks removed lines with a minus sign and added lines with a plus sign. A replacement can appear as a removal followed by an addition.

Understand the whitespace option

Ignore whitespace removes all whitespace within each line when deciding whether two lines match. For example, a b and ab count as the same line with this option enabled. Keep it off when spaces are meaningful, such as Python indentation or text inside a string.

Changing a word from Learn to Practise produces one removed line and one added line. This tool compares lines rather than highlighting individual changed characters. It does not merge the two inputs.

Limits and copying

Each input accepts up to 50,000 characters, and the comparison accepts at most 400 lines per side. Copy source copies Original text; it does not copy the combined difference view. Split a longer document into smaller sections to inspect it.

Privacy and saving

Comparison runs on your device. Inputs are not uploaded or saved automatically. Keep a separate copy of your work before closing the page.

Browse coding tools · Compare JSON values · Privacy details