Compare two texts (diff) online
Paste two texts to compare line by line. Differing lines are listed side by side. Useful for reviewing versions and code.
What it is for
The text comparison tool shows the differences between two contents line by line, highlighting what changed. Instead of rereading everything looking for edits, you immediately see where the texts diverge.
It is useful for reviewing versions of a document, checking what changed in a code snippet or comparing two lists.
When to use
- Compare two versions of a contract or document.
- See what changed between two code snippets.
- Check differences between two data lists.
- Review a translation or edit side by side with the original.
How to use
- Paste the first text on one side.
- Paste the second text on the other side.
- See the differing lines highlighted in the comparison.
Limitations
Comparison is done line by line, so a change in the middle of a line marks the whole line as different. For very long texts, split them into parts. All processing happens in the browser, with nothing sent to servers.
Frequently asked questions
- Is the comparison by line or by word?
- Comparison is by line. Any difference within a line marks the entire line as changed.
- Are the texts sent to any server?
- No. Comparison happens in your browser, so you can compare sensitive content safely.
- Do spaces and capitalization count as a difference?
- Yes. Differences in spacing or case make the line show as changed, since the content is not identical.