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.
How to use it
- Paste the original text on the left and the modified text on the right
- Choose line comparison or word comparison, and side-by-side or unified view
- Optionally ignore case, leading and trailing whitespace, or blank lines
- 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
A text diff compares two versions of a text and marks which parts are the same and which were added, removed or changed. It works on the characters and lines themselves, not on their meaning.
Line comparison aligns whole lines and flags each one as unchanged, added, removed or modified. Word comparison breaks the text into word and punctuation tokens and highlights the exact tokens that differ.
Yes. You can ignore letter case, ignore leading and trailing whitespace on each line, and ignore blank lines. These options only affect the comparison; the text shown is always exactly what you pasted.
No. JSON Diff compares the structure and values of two JSON documents. This tool compares plain text of any kind, line by line or word by word, without parsing it.
No. The comparison runs entirely in your browser. The two texts, your options and the result are never sent to a server, written to storage or logged, and closing the tab discards them.