Skip to main content
Back to tools

Text Diff

Compare two texts and highlight line-by-line differences

About Text Diff

Text Diff lets you compare two texts and highlight line-by-line differences.

Category: Text.

Frequently asked questions

What diff algorithm is used?

A line-by-line diff using the Myers algorithm — the same algorithm used by git. It finds the shortest edit script (minimum insertions and deletions) to transform one text into the other.

What do the colors mean?

Red lines (−) were removed — present in the left/original text but not in the right. Green lines (+) were added — present in the right/new text but not in the left.

Can I compare code files?

Yes. Paste any text content including code. The diff is purely text-based with no language-specific parsing.

Related tools