🔒 Runs in your browser — nothing is uploaded✓ Free, no signup
Text Diff — Compare Two Texts Online
Paste two versions of a text to see exactly what changed. Added words are highlighted in green, removed words in red — by line, word or character.
Differences
Paste text in both boxes to see the differences.Green was added, red was removed.
When should you use the Text Diff?
- Checking what changed between two versions of a document or contract
- Reviewing edits to an article, email or translation
- Spotting the difference between two config files or code snippets
How to use the Text Diff
- 1
Paste the original
Put the older version in the Original text box.
- 2
Paste the changed version
Put the newer version in the Changed text box. Differences appear immediately.
- 3
Choose how to compare
Use Words for prose, Lines for code and config files, and Characters to catch small typos.
- 4
Refine
Tick Ignore case or Ignore whitespace to hide changes you don't care about.
Examples
Word-level comparison
Original → changed
Nothing you paste is uploaded. Nothing you paste is ever uploaded.
Result
Nothing you paste is [+ever] uploaded. +1 word added, −0 words removed
Common errors and how to fix them
Every line shows as changed- The files probably use different indentation or trailing spaces. Tick Ignore whitespace, or switch to Words mode.
Too many small highlights to read- Switch from Characters to Words or Lines mode to group changes together.
More from Text Tools
Free tools that run in your browser — no signup, nothing uploaded.
Word & Character Counter
Count words, characters, sentences and reading time as you type.
Case Converter
Convert text to camelCase, snake_case, kebab-case, Title Case and more.
Lorem Ipsum Generator
Generate placeholder paragraphs, sentences or words as text or HTML.
Fancy Text & Font Generator
Turn text into 𝐛𝐨𝐥𝐝, 𝘪𝘵𝘢𝘭𝘪𝘤, 𝓈𝒸𝓇𝒾𝓅𝓉 and other Unicode font styles you can paste anywhere.
Sort Lines & Remove Duplicates
Sort lines alphabetically or naturally and remove duplicate lines.
Remove Line Breaks & Extra Spaces
Remove line breaks, empty lines and extra spaces from text.
Word Frequency Counter
Count how often each word or phrase appears in a text.
JSON Auto-Fixer & Formatter
Repair, validate, and beautify broken JSON (missing quotes, trailing commas).
JSON Compare & Diff Tool
Find the difference between two JSON objects visually and quickly.
Text Diff FAQ
Paste the original version on the left and the new version on the right. Differences are highlighted as you type: green for added text and red with a line through it for removed text.
Lines mode marks whole lines that changed — best for code and config files. Words mode highlights the exact words that changed — best for prose and documents. Characters mode shows single-character changes such as typos.
In Lines mode it ignores indentation and spaces at the end of lines, so a re-indented file doesn't show every line as changed. Words mode already ignores changes in spacing between words.
Yes — use Lines mode for source code. For JSON specifically, the JSON Compare tool understands JSON structure and ignores key order.
There's no fixed limit, but very large texts (hundreds of thousands of lines) compared in Characters mode can be slow because every character is compared. Use Lines mode for big files.
No. The comparison runs entirely in your browser, so you can safely compare contracts, code or private documents.
