Compare two texts and measure their similarity
Compare two texts and compute their similarity (Levenshtein distance, percentage), in your browser.
Similarity = 1 − (distance / max length). 100% local computation.
🔒 100% client-side — no data sent
Compare two texts and get their similarity percentage using the Levenshtein distance. The tool counts how many edits are needed to turn one string into the other, right in your browser. No text ever leaves your device: everything stays 100% local and private.
What is it for?
- ▸ Detect duplicates or near-duplicates in a data list
- ▸ Check how close two versions of the same paragraph are
- ▸ Fix typos by finding the nearest matching word
- ▸ Assess similarity between names, addresses or product references
FAQ
What is the Levenshtein distance?
It is the minimum number of single-character operations (insertion, deletion or substitution) needed to change one text into another. The lower the distance, the closer the two texts are.
How do you calculate the similarity percentage between two strings?
You divide the Levenshtein distance by the length of the longer string, then subtract that ratio from 100%. The tool does this automatically and shows the score in real time.
Are my texts sent to a server?
No. The calculation runs entirely in your browser in JavaScript. No data is transmitted or stored online.