Compare two pieces of text, line by line
Drop one version of your text on the left and another on the right, and the tool lines them up and shows you what changed. Removed lines are marked in red, added lines in green, and edited lines in amber with the exact words that changed picked out inside the line. It updates as you type, so you can spot a single reworded sentence or track every edit across a long document. Everything is compared on your own device, so your text is never uploaded.
How to compare two texts
- Paste the original. Put the first version in the left box.
- Paste the new version. Put the text you want to compare it against in the right box.
- Read the highlights. Additions, deletions and changes appear instantly. Copy either version or the whole comparison when you're done.
The comparison options explained
- Ignore whitespace treats runs of spaces, tabs and indentation as the same, so lines that only differ in spacing are not flagged as changed. Useful for comparing reformatted code or text.
- Ignore letter case treats capital and small letters as equal, so Hello and hello count as the same line.
- Additions are lines that appear in the changed version but not the original.
- Deletions are lines that were in the original but are gone from the changed version.
- Changes are lines that exist in both but were edited, with the differing words highlighted.
Frequently asked questions
Is my text sent anywhere?
No. The whole comparison runs in your browser with plain JavaScript. Your text is never uploaded or stored on a server, which keeps it completely private.
How does it decide what counts as a change?
It compares the two texts line by line and finds the longest run of lines they share. Lines that only exist on the left are deletions, lines that only exist on the right are additions, and where a removed line and an added line line up, it treats them as an edited line and highlights the words that differ.
Can I compare code or long documents?
Yes. Paste as much as you like into either box. It works well for code, articles, lists, JSON, or any plain text, and it all stays on your device.
Can I copy the result?
Yes. You can copy either version on its own, or copy the whole comparison, which is written out with a minus sign in front of removed lines and a plus sign in front of added lines.
Is it really free?
Yes, it is free with no sign-up, no watermark, and no limits.