Text Diff - Compare Two Texts Side by Side
Compare Two Texts
Paste the original text on the left and the changed version on the right. Removed lines are marked in red, added lines in green, and when a line was edited rather than replaced, the words that changed inside it are highlighted too. A summary shows how many lines were added, removed and left unchanged. Nothing is uploaded; the comparison runs in your browser.
Example
Original:
timeout = 30
retries = 3
log_level = info Changed:
timeout = 60
retries = 3
log_level = debug
cache = on
The diff shows two edited lines, with 30 →
60 and info → debug
highlighted, one unchanged line, and cache = on as an
added line.
Views and Options
- Side by side lines up the two versions in columns,
which is easiest for prose and config files. Unified
shows one column with removed lines above added ones, the layout of
git diff. - Ignore whitespace treats lines that differ only in spacing or indentation as equal. Ignore case treats "Hello" and "hello" as the same line.
- Collapse unchanged lines folds long identical stretches down to three lines of context around each change. Click a folded section to open it.
When a Line Diff Is the Wrong Tool
A line-based diff sees a re-wrapped paragraph as every line changed, because the line breaks moved. Join the lines first with Remove Line Breaks, or compare paragraph by paragraph. For two lists where order does not matter, use List Diff, which reports items only in one list or in both. For JSON, the JSON diff compares structure and ignores key order and formatting.
Related Tools
Markdown Preview
Write Markdown and see the rendered HTML output in real time.
Lorem Ipsum Generator
Generate placeholder text in paragraphs, sentences, or words.
List Deduplicator
Remove duplicate lines from a list with options for case sensitivity and sort order.
List Diff / Compare
Compare two lists and find items unique to each, shared between both, or missing from one.