How do you compare two texts and find the differences?
To compare two texts, paste the original into the left box and the changed version into the right box, and the differences are highlighted at once: green for additions and red for deletions. You can view the result side by side or as a unified diff, and compare by lines, words or characters, with options to ignore case and whitespace. It works as a diff checker for documents, code, contracts and configuration files, and nothing leaves your browser.
How to compare two texts online
- 1
Paste the original text into the left box.
- 2
Paste the changed text into the right box.
- 3
Choose to compare by lines, words or characters, and set the options to ignore case or whitespace.
- 4
Review the highlighted differences and use Copy diff to share them.
Key features
Side by side or unified
See both versions next to each other, or one merged view like a code review diff.
Line, word or character level
Find changed lines quickly, or zoom in on exactly which words and letters were edited.
Ignore case and whitespace
Skip differences that do not matter, such as capital letters or trailing spaces.
Change counts
Get the number of added and removed lines, words or characters, plus a clear identical or different result.
Frequently asked questions
How does a diff checker work?
It finds the longest common sequence between two texts and marks everything outside of it as added or removed. Lines present only in the new text are additions, and lines present only in the old text are deletions.
Can I compare two files?
Open each file in a text editor, copy its contents and paste it into the two boxes. The comparison is made in your browser, so the content is not uploaded.
What is the difference between line, word and character comparison?
Line mode is best for code and lists. Word mode is good for prose and documents. Character mode shows even single-letter edits such as typos.
How do I ignore whitespace differences?
Turn on Ignore whitespace when comparing by lines. Differences in spaces, tabs and indentation are then not reported.
Is it safe to compare confidential documents?
Yes. The comparison runs in your browser and the texts are not sent to a server.
Can I compare code?
Yes. Use line mode with the side-by-side view, which is similar to what you see in a code review tool.