AltUtils

Text Diff

Compare two text blocks and see exactly what changed — line by line or word by word.

What is the Text Diff Tool?

The Text Diff Tool compares two blocks of text and highlights exactly what was added, removed, or left unchanged using a color-coded visual diff.

This is essential for code reviews, content editing, and tracking changes between document versions — all processed locally in your browser with no data ever leaving your machine.

Frequently Asked Questions

What is a text diff?

A diff (short for difference) shows the changes between two versions of text. Lines or words marked in green were added, while those in red were removed.

What is the difference between line diff and word diff?

Line diff compares entire lines — if any character in a line changed, the whole line is marked. Word diff is more granular, highlighting individual words that changed.

Can I use this for code comparison?

Absolutely. This tool uses the same LCS (Longest Common Subsequence) algorithm used by Git and other version control systems to identify changes.

Is there a size limit?

The tool runs in your browser, so very large texts (10,000+ lines) may take a moment to process. For typical use cases, it's instant.

Does this tool store my text?

Never. All comparison is done locally in your browser's memory. No data is sent to any server.