Compare two texts
Compare two blocks of text and see exactly which lines were added, removed or changed. Runs in your browser — neither version is uploaded.
- Free, no account
- Nothing is uploaded
- Runs in your browser
How it works
- 1 What goes in Two versions of a text
- 2 It runs in your browser On your own device. Nothing is uploaded, there is no queue and no account, and it keeps working with the network switched off.
- 3 What comes back Every line that changed, marked
What it does
Paste both versions and get a line-by-line comparison: what was added, what was removed, and what stayed. Word-level highlighting shows what changed inside a line that was only edited.
This page does the work itself. Your text is handled by the browser and never sent anywhere — there is no server here to send it to.
Questions
How does it decide which lines match?
By longest common subsequence, the same idea git uses. It looks for the longest run of lines that appear in both texts in the same order, and everything outside that run is an addition or a removal. That is why moving a paragraph shows as a removal and an addition rather than as a move — a diff has no concept of a move.
Is it safe to compare a contract or a config file here?
The comparison happens in the page. There is no server here to receive either version, so load it once, disconnect from the network, and it still works. That is the only proof of the claim worth anything.
Why is a line marked changed rather than added and removed?
When a removal and an addition land next to each other and the two lines are more alike than not, they are shown as one changed line with the differing words highlighted. It is the same text either way; it is just far easier to read.
More text tools
-
Text
Markdown → HTML
Convert Markdown to clean HTML in your browser, with a live preview.
-
Text
Word counter
Live word, character, sentence and paragraph counts with reading time, plus the platform limits your text fits or busts.
-
Text
Case converter
Convert text to camelCase, PascalCase, snake_case, kebab-case, Title Case and more, all at once.
-
Text
Invisible characters
Find and strip zero-width spaces, bidi controls, soft hyphens and odd whitespace hiding in text, with every one located by position and code point.
-
Text
Fix text encoding
Turn José back into José, and read a file under every encoding at once.