Text Diff
Free online text comparison tool, highlight differences
About Text Diff
A side-by-side text comparison tool that highlights line-level differences between two text inputs. Paste your original and modified text into the two 12-row textareas, click Compare, and review added/removed lines in either unified (single column with +/- prefixes) or side-by-side view. A summary shows counts of added and removed lines, and you can copy the result as patch-style output or clear all fields in one click.
How to Use
1. Paste your original text into the Original Text card (left). 2. Paste your modified text into the Modified Text card (right). 3. Click Compare to run the diff and surface the Differences card. 4. Toggle Unified View or Side-by-Side View to switch rendering. 5. Use Copy to copy +/- prefixed output, or Clear to reset both inputs and the result.
Diff Algorithm & Views
The compare routine walks both line arrays in lockstep using a greedy matcher: identical lines become 'same', differing paired lines are emitted as a removed+added pair, and lines present on only one side are flagged as pure additions or removals. Note this is a positional line diff, not an LCS-based diff, so reordering or shifted blocks may surface as more changes than a minimal diff would. In unified view each line carries a + (green), - (red), or space (unchanged) prefix. In side-by-side view the left column shows original/removed lines with their line numbers, and the right column shows modified/added lines with their line numbers.
▶Why am I seeing more added/removed lines than I expected?
▶Can I ignore whitespace or case differences?
▶What format does Copy produce?
▶What does the toast after Compare mean?
If this tool has been helpful to you, consider buying me a coffee.
Buy me a coffee