🔒 100% Private — Your files never leave your device

Text Diff — Compare Texts

Paste two versions of text and see differences line by line. Additions highlighted green, deletions red. Instant comparison.

Ad Space

Text Diff Tool — Compare Two Texts Online

Compare two versions of a text side by side. Differences are highlighted line by line — additions in green, deletions in red, unchanged lines in grey. Useful for comparing code, documents, configs, or any text.

Frequently Asked Questions

How does the diff work?
The tool uses a Longest Common Subsequence (LCS) algorithm to find the minimum set of changes between the two texts, similar to how git diff works.
Can I compare code?
Yes. Paste any text including code. The comparison is purely text-based with no language-specific parsing.
Is whitespace-sensitive?
Yes. Spaces, tabs, and newlines are significant in the comparison. A line with a trailing space is considered different from the same line without it.
Is my text sent to a server?
No. All comparison logic runs in JavaScript in your browser.

Related Tools

Ad Space
Ad Space