Text Compare
Compare two texts and instantly see added, removed and changed lines, with word-by-word highlighting.
removed from the original added in the changed textOn changed lines, only the words that differ are highlighted.
Compare two texts for free and quickly spot every difference between them. This text compare tool places the original version next to the changed one and highlights, line by line, what was added, removed or modified. On lines that changed only partly, it goes a step further and marks the exact words that differ, so you don't have to hunt for a single comma or number in the middle of a whole paragraph. It's ideal for reviewing documents, comparing versions of a text, analyzing changes in code and checking edits to contracts, articles and other content.
The comparison uses the Myers algorithm — the same approach behind version control tools such as Git — which finds the smallest set of changes that turns one text into the other. Everything is processed in your browser: neither text is sent to a server, so the tool is safe to use even with confidential content.
How to use
- Paste the original version in the left box and the changed version in the right box.
- Optionally, tick the options to ignore whitespace or the difference between upper and lower case.
- The comparison runs automatically as you type — or click "Compare texts". Switch between the side-by-side and unified views.
- Check the statistics and use "Copy result" to take the differences, in unified diff format, into an email, ticket or review.
How to read the result
- Lines marked with − on a red background exist only in the original text: they were removed.
- Lines marked with + on a green background exist only in the changed text: they were added.
- Changed lines appear on both sides with the differing words highlighted — struck through in the original and underlined in the new version.
- Similarity is the share of content that stayed the same between the two versions: 100% means the texts are identical.
Practical example
Say you sent out a meeting invite and a colleague sent the text back with edits, without saying what changed. Paste both versions and the tool shows that the date line was modified (only "10" became "12"), that David was added to the attendees, that the line about the expected length was removed and that a new line asking for the sales report was added. You can validate every change in seconds instead of rereading both texts in full.
Frequently asked questions
Are my texts sent to a server?
No. The whole comparison runs locally in your browser. The texts never leave your device and are discarded as soon as you close or reload the page — so you can safely use the tool with contracts, internal documents and private code.
What's the difference between the side-by-side and unified views?
In the side-by-side view, the original text sits on the left and the changed text on the right, aligned line by line — great for reviewing documents. In the unified view, both versions are shown in a single column, with removed lines (−) right before the added ones (+), in the style used by developer tools such as Git.
What do the ignore whitespace and ignore case options do?
With "Ignore whitespace", extra spaces, tabs and leading or trailing spaces no longer count as differences — handy for re-indented code or text with doubled spaces. Line breaks in different places (common in text copied from PDFs) still count as differences. With "Ignore upper/lower case", "London" and "LONDON" are treated as equal. The text you see stays exactly as typed; only the comparison changes.
How does the tool decide whether a line was changed or replaced?
When a removed line and an added line sit in the same position, the tool compares them word by word. If most of the content is shared, they're treated as one changed line and only the differing words are highlighted. If almost nothing matches, the tool reports one line as removed and a different one as added.
Can I compare source code or large files?
Yes. The tool works with any plain text — code, JSON, CSV, logs or config files — and accepts up to 50,000 lines in each box. For long texts, tick "Show changes only" to hide identical stretches and see just the changes with a few lines of context.
What format is the result copied in?
The "Copy result" button produces a unified diff: lines starting with − were removed, lines with + were added and lines starting with a space are unchanged, grouped into blocks with line numbers (@@). It's the same format used in patches and code reviews, and you can paste it into emails, tickets or chat messages.