About Variant
Variant compares two blocks of text and highlights exactly what changed between them, word by word or line by line, entirely in your browser. Nothing you type is uploaded or sent to a server.
Features
- Word-level or line-level comparison, your choice
- Additions and removals marked in distinct colors
- Optional case-insensitive comparison
- Quick summary counts of added, removed, and unchanged content
- Swap the two texts with one tap
- Runs entirely in your browser — nothing is uploaded
How to use it
- Paste your original text into the left field and the revised text into the right.
- Choose whether to compare by word or by line, and whether to ignore case.
- Tap Compare to see the differences highlighted.
- Additions appear underlined in green, removals appear struck through in red.
- Tap Swap to compare in the other direction, or Clear to start over.
Frequently asked questions
What's the difference between word and line comparison?
Word comparison highlights individual words that changed within a passage, which is useful for edited paragraphs. Line comparison treats each line as a unit, which is useful for comparing lists, code, or structured text.
Is my text sent anywhere?
No. The comparison runs entirely in your browser using plain JavaScript — nothing is uploaded to a server.
Does it detect moved text?
It detects additions and removals relative to each text's original order, but it doesn't specifically flag text that was only moved rather than changed — a moved block will show as a removal in one spot and an addition in another.
Is there a length limit?
Each field accepts up to 30,000 characters, which comfortably covers most documents, articles, or code snippets.
