Text Diff
Compare two blocks of text line by line and see exactly what was added, removed or left unchanged.
Compare two texts
Paste two texts and click Compare.
No comparison yet.
How to use the Text Diff
- Paste the original text in the left box and the changed text in the right box.
- Click Compare, or simply type, to run the line by line comparison.
- Read the colour coded lines, then copy the diff if you need to share it.
Features
- Line by line comparison of two texts
- Added lines in green and removed lines in red
- Similarity score and change counts
- Copy the diff as plain text
Advertisement
Frequently Asked Questions
Common questions about the free online text diff.
Paste the original text in the left box and the changed text in the right box, then click
Compare.
A line marked with a plus sign exists only in the second text.
No. The comparison is calculated entirely in your browser, so nothing you paste ever leaves
your device.
Yes. The comparison works on any line based text, including source code, configuration files,
CSV data, logs and Markdown.
Yes, lines are compared exactly as written, so a line containing Hello is treated as
different from one containing hello.
About 1200 lines per side. That keeps the comparison fast, so split very large files into
sections if you need more.
Yes, click Copy diff to place a plain text version on your clipboard, with the same plus and
minus markers.
It is the share of lines the two texts have in common, derived from the longest common
subsequence and rounded to a whole percentage.
No. Trailing spaces and leading indentation are part of each line, so trim or reformat the
text first if those differences are not relevant to you.
Yes, the tool is responsive and works on phones, tablets and desktop browsers.
Last updated: October 10, 2026