🔒 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. 1

    Paste the original

    Put the older version in the Original text box.

  2. 2

    Paste the changed version

    Put the newer version in the Changed text box. Differences appear immediately.

  3. 3

    Choose how to compare

    Use Words for prose, Lines for code and config files, and Characters to catch small typos.

  4. 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.
Related tools: JSON Compare · Word Counter · Case Converter

More from Text Tools

Free tools that run in your browser — no signup, nothing uploaded.

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.