Skip to content

Text Diff Tool

Compare two texts and see line-by-line differences.

Compare two pieces of text and see exactly what changed, line by line, with additions and removals highlighted. Great for reviewing edits, config changes, and code snippets. Both texts are compared in your browser and are not uploaded.

Frequently asked questions

What does the diff show?

It marks lines that were added, removed, or unchanged between the two versions, so you can spot every difference at a glance.

Can I compare code?

Yes — it works on any plain text, including code, config files, and prose.

Does it compare word by word?

Comparison is line-based, which is the clearest way to review most edits and changes.

Does it ignore whitespace or letter case?

No. Lines are compared exactly, so a changed space, a tab or a different capital letter marks the whole line as removed and added again. The tool finds the longest run of lines both texts share (longest common subsequence) and marks every other line as added, in green, or removed, in red.