↔

Text Diff Checker

Compare two texts or files side by side with word-level highlights

Analysis
🔒 100% client-side — your data never leaves this page
Maintained by Evan•Updated: October 31, 2026•Reviewed: September 29, 2026

Paste or open two texts. Changed lines are paired and the exact words that differ are highlighted. Whitespace and case count unless you choose to ignore them.

Diff result
Enter text on either side to see the diff.

Line endings are normalized, and a trailing newline counts as a final empty line. Files are read as UTF-8 in this page and never uploaded. Each side is limited to 500,000 characters and 20,000 lines, and up to 2,000 changed lines can be aligned. Copy exports a line report with + / − prefixes, not an applicable patch.

Page reading mode

About this tool

Compare two blocks of text, or open two text files, and see every changed line. Side-by-side view lines up the original and modified versions; unified view lists removals and additions with both line numbers. When a line is edited, the removed and added versions are paired and the exact words or characters that differ are highlighted, including Chinese and Japanese text without spaces. You can ignore whitespace (all spaces and tabs) or letter case, fold long unchanged sections and swap the two sides. Files are read as UTF-8 in your browser and are never uploaded. Each side accepts up to 500,000 characters and 20,000 lines, and up to 2,000 changed lines can be aligned. Copy diff exports a line report with + and − prefixes, not a patch file. The comparison is textual: it does not understand JSON, code syntax or document formatting.

Use Cases

01

Compare two versions of a configuration file

Goal: Find the exact values that changed between two versions of a file.

  1. Open the old file on the left and the new file on the right, or use Try example for a small settings edit.
  2. Read the side-by-side rows: CACHE_TTL is paired across both columns with 300 and 600 highlighted, and RETRY=2 appears only on the right.
  3. Turn on Ignore whitespace if indentation changed, then copy the diff for a review note.

Result: The summary is +2 −1: an edited line counts as one removal plus one addition, and the highlighted words show what changed inside it. The tool does not validate the configuration itself.

Related Guides

Examples

Copied report for the example

diff

- CACHE_TTL=300
+ CACHE_TTL=600
  ENABLE_LOGS=false
  PORT=8080
+ RETRY=2

Common Mistakes and Fixes

Indentation or spacing makes every line look different

Cause: Spaces and tabs count by default. CRLF line endings are normalized to LF, but a reformatted file can still change spacing on every line.

Fix: Turn on Ignore whitespace to compare content only, or Ignore case for case-insensitive values. Turn them off again for an exact comparison.

A very different file cannot be aligned

Cause: Each side accepts 500,000 characters and 20,000 lines, and alignment stops after 2,000 changed lines.

Fix: Compare matching sections, such as one chapter or one configuration block at a time. A rejected input shows an error and no stale result.

Frequently Asked Questions

Can I compare two files instead of pasting text?

Yes. Use Open file on each side or drop a file onto a box. Files are read as UTF-8 in the browser and never uploaded; binary files such as images or PDFs are refused.

What does Ignore whitespace change?

Lines are compared with all spaces and tabs removed, so indentation and spacing changes no longer count. Added or removed blank lines still appear, and lines treated as unchanged show both original texts side by side.

Why is a whole line marked instead of a few words?

Word marks appear only when the old and new lines share enough text. When a line was rewritten, marking every word would add noise, so the pair is shown as a plain removal and addition.

Can I compare text against an empty version?

Yes. Text on the modified side only is all additions; text on the original side only is all removals. Two empty inputs show no result.

Does an identical result prove two files have identical bytes?

No. Line endings are normalized and files are decoded as UTF-8, so encodings, byte order marks and metadata are not compared.

Can it compare JSON or code semantically?

No. JSON key order, formatting, comments and indentation affect the line result. Use JSON Diff for a comparison of JSON structure.

Keep browsing