Text A
Text B

Enter texts above and click Compare to see highlighted differences

Key Features

Highlighted Differences

Added text shown in green, removed text shown in red — just like GitHub diff.

Similarity Score

See exact similarity percentage based on Levenshtein distance.

Privacy Protected

All processing runs locally in your browser. No data sent to servers.

How to Use Text Compare

1

Enter First Text

Paste the original text in the Text A input area.

2

Enter Second Text

Paste the text to compare in the Text B input area.

3

View Highlighted Differences

See both texts with removed content highlighted in red and added content highlighted in green.

Frequently Asked Questions

Basics

How is similarity calculated?

Similarity is calculated using the Levenshtein distance ratio, which measures the minimum number of single-character edits (insertions, deletions, substitutions) needed to transform one text into the other.

What does similarity percentage mean?

A 100% similarity means texts are identical. Lower percentages indicate more differences between the texts.

Features

What is Line mode vs Word mode?

Line mode compares line by line — shows which lines were added or removed. Word mode compares word by word within the text — shows exactly which words changed, useful for detecting small edits within the same line.

Is there a size limit?

The tool runs entirely in your browser. For best performance, keep texts under 100KB.