text data

Text Comparison / Diff Checker

Compare two blocks of text line by line and see additions, removals, and changes side by side.

Texts to compare

0 lines · 0 B of 256 KB. e.g. alpha\nbeta\ngamma

0 lines · 0 B of 256 KB. e.g. alpha\nBETA\ngamma\ndelta

Comparison

Paste or type the two texts on the left — the original text and its edited version — then press Compare. The table shows every line as same, changed, removed or added, with the original line numbers.

Before you rely on this

  • Line-based comparison only — each side is split into lines (max 500 per side, 256 KiB each) and matched with a longest-common-subsequence table; there is no word-level or character-level diff.
  • Line endings are the only normalisation: CRLF and CR count as LF. Whitespace, case and Unicode forms are compared exactly — trailing spaces and "Cat" vs "cat" are real differences.
  • A trailing newline is a real line: "a" and "a\n" differ by one empty line. Empty input has zero lines.
  • Adjacent removed and added lines pair up as "changed" rows; leftover removals and additions show as their own rows. Line numbers always refer to the original texts.

Paste or type the two texts, then press Compare.

Privacy settings

Checking…

We count anonymous tool use and coarse errors to improve ToolDeck. We do not send your files, pasted text, generated links, or results. Normal network delivery still exposes connection metadata to Cloudflare. Your choice is stored only in this browser's local storage — we do not create a visitor ID. Decline opts out; your browser's Global Privacy Control or Do Not Track signal overrides any choice.

Developer feedback