Skip to main content

Text Diff & Compare

Text Diff & Compare puts two texts side by side and shows, line by line or word by word, exactly what changed between them — added, removed, or modified — entirely in your browser.

Paste an original and a modified text, choose the options, then compare.

Compares two text inputs locally and shows textual differences only. It is not a semantic, grammar, plagiarism or AI-based analysis, and it is different from the JSON Diff tool. Line endings (CRLF / LF) are normalised before comparison.

Processed locally in your browser

How to use it

  1. Paste the original text on the left and the modified text on the right
  2. Choose line comparison or word comparison, and side-by-side or unified view
  3. Optionally ignore case, leading and trailing whitespace, or blank lines
  4. Click Compare texts, read the added / removed / modified counts, and copy the unified comparison if needed

Paste an original text and a modified text, pick line comparison or word comparison, and choose how to see the result: side by side in two columns, or unified in a single column with minus and plus markers. Before comparing, both texts have their line endings normalised, so a Windows CRLF and a Unix LF never count as a difference. Three options change only the comparison, never the text you see: ignore case (so "Hello" and "hello" match while both spellings stay visible), ignore leading and trailing whitespace on each line, and ignore blank lines. Modified lines are shown with an inline word-level highlight of the part that actually changed, up to a bounded length. The result includes a factual count of unchanged, added, removed, and modified lines, plus a unified comparison you can copy as plain text. Everything runs locally: the two texts, the options, and the comparison are never uploaded, logged, or stored, and closing the tab discards them. This is a purely textual comparison. It does not understand meaning, it is not a grammar, plagiarism, or AI check, and it does not prove that two documents say the same thing. It is also different from the JSON Diff tool, which compares the structure of two JSON values; this one compares plain text of any kind. Very large inputs are refused with a clear message rather than freezing the page, and two texts that differ almost completely are shown as one fully replaced block.

FAQ

We use cookies to run this site and, with your consent, to understand usage and personalize ads. You can change your choice at any time.