historia.vg / Tools / Text Diff

Text Diff

Type or paste text into the boxes. The comparison below updates automatically, with blank spacers keeping matching lines aligned. Everything stays in your browser.

Long lines wrap without changing your text. Spaces, tabs, and blank lines are compared; line endings are normalized to LF. Limit: 100,000 characters and 2,000 lines per side. Very complex comparisons may need a smaller excerpt.

Comparison

Enter text to begin.

- Removed / original+ Added / modifiedBlank spacer (not part of the text)

Changes are highlighted by whole line. Line numbers refer to your input, not spacer rows. On small screens, scroll the comparison sideways.

CLI alternative

Use -y instead of -u for side-by-side output.

diff -u original.txt modified.txt

Install if needed:

sudo pacman -S diffutils
sudo apt install diffutils