DevToolBox

Text Diff

Compare two texts line by line and spot changes at a glance.

000
Diff Result

Enter both texts to see the line-by-line diff.

How to Use

What is a text diff? A text diff compares two versions of text line by line. It highlights added, removed and unchanged lines so you can review changes quickly.

How to use it 1. Paste the original text into the left box. 2. Paste the new text into the right box. 3. The diff updates automatically as you type.

Reading the output - Green + lines are additions. - Red - lines are removals. - Neutral lines are unchanged context. - The stats bar shows added, removed and unchanged counts.

Tips - Copy the unified diff text for sharing in tickets, chats or commit messages. - The diff uses a line-level LCS algorithm. - Inputs larger than 10000 lines are skipped with a performance hint.

Privacy Diffing runs entirely in your browser.

Text Diff - Compare Two Texts Line by Line