Skip to content

Text Diff

Embed

Paste this where you want Text Diff on your site. Adjust the height to fit.

<iframe src="https://www.browserutils.dev/embed/text-diff/" width="100%" height="500" frameborder="0" loading="lazy" title="Text Diff"></iframe>
<p style="font-size:12px;margin:4px 0 0"><a href="https://www.browserutils.dev/tools/text-diff/">Text Diff</a> by BrowserUtils</p>

Compare two texts and highlight differences.Runs in this tab.

Enter text in both panels to see differences

Next step

About Text Diff

Free online text diff tool. Compare two blocks of text side by side and see additions, deletions, and changes highlighted. It runs in your browser. Nothing is sent to a server.

Questions

How does the text diff tool work?
The tool compares two blocks of text line by line using a diff algorithm. Added lines are highlighted in green, removed lines in red, and unchanged lines are shown for context so you can quickly spot every difference.
Can I use this to compare code files?
Yes, the diff tool works with any plain text including source code. Paste the contents of two file versions to see exactly which lines were added, removed, or modified between them.
Is the text diff comparison case-sensitive?
Yes, the comparison is case-sensitive by default. "Hello" and "hello" will be flagged as different lines.
Does the text diff tool send my data to a server?
No, the diff computation runs entirely in your browser. Both text inputs remain on your device and are never transmitted anywhere.

More in Text & String Utilities

All 28 text & string utilities