Online Diff Checker

Side-by-Side Text, Code, Word (.docx), and PDF Diff Checker

Compare two text blocks, source code files, spreadsheet columns, Word (.docx), or PDF body text directly in your browser with line-by-line and inline highlighting. All parsing and diff calculations run locally on your device, keeping drafts, configs, and logs off external servers.

How to Compare Text
STEP1

Paste text or load files into Before and After

Paste content into the Before and After panels, or click "Choose File" or drag and drop .txt, .csv, .md, .docx, .pdf, or code files. Comparison starts once both sides contain input, and "⇄" swaps the two panels.

STEP2

Adjust comparison filters under Options

Open "Options" at the bottom right to ignore whitespace and indentation, line breaks, letter case, empty lines, or leading and trailing spaces. Enable "Sort lines before comparing (Set diff)" when comparing unordered lists.

STEP3

Switch views and export changes

Toggle "Split" or "Unified" view and step through edits with "Prev" and "Next". Use the "⋯" menu for "Show diff lines only", "Wrap lines", "Highlight granularity" (Character or Word), and "Syntax highlighting", then open "Copy / Save" to extract changed lines or download a .diff file.

Key Features

Local In-Browser Execution

File decoding and diff calculations run strictly inside your browser with JavaScript and Web Workers. No pasted text or uploaded files are sent to external servers.

Diff Line Extraction and .diff Export

Copy added lines, removed lines, a summary of changed lines, or Unified Diff output from "Copy / Save", or download a standard .diff file.

Unordered List Comparison (Set Diff)

Enable "Sort lines before comparing (Set diff)" to group two lists into "Only in Original", "Only in Modified", and "In Both", then copy any group in one click.

Word (.docx), PDF Text Extraction & Encoding Support

Extract plain body text from .docx and selectable .pdf files, normalize Unicode NFC combining marks automatically, and read UTF-8, UTF-16, Shift-JIS, and EUC-JP files up to 10 MB each.

Seven Comparison Filters

Ignore indentation, whitespace, full/half-width spaces, line breaks, case differences, or empty lines, and trim line edges to isolate real edits.

Split/Unified Views and 19-Language Syntax Highlighting

Switch between side-by-side Split and Unified views with character or word highlighting plus syntax coloring for JSON, XML, HTML, SQL, Python, JavaScript, and more.

Common Use Cases

Checking Document and Copy Revisions

Place two drafts, Word (.docx), or PDF documents side by side to review every inserted, removed, or edited word and number.

Comparing Two Excel Columns or CSV Lists

Paste two columns copied from Excel or drop two .csv files with Set diff enabled to isolate unique entries and shared rows.

Reviewing JSON, XML, HTML, SQL, and Code Changes

Inspect configuration files and code snippets with syntax highlighting, whitespace filtering, and Unified Diff export.

Browser Alternative to Notepad++ and Desktop Diff Tools

Run text and file comparisons on Windows, macOS, or Linux without installing Notepad++ plugins, VS Code extensions, or desktop utilities.

FAQ
Are my pasted texts or files uploaded to a server?
No. All file reading and diff computation happen locally inside your browser. Your data is never transmitted to or stored on an external server.
Can I compare code files like JSON, XML, HTML, or SQL without desktop software?
Yes. Drop or paste code files directly in the browser and pick a language or "Auto Detect" under "Syntax highlighting" in the "⋯" menu. It works across Windows, macOS, and Linux with no installation.
Can I compare Word (.docx), PDF, or Excel files?
Yes for Word (.docx) and text-based PDF (.pdf): the tool extracts plain body text locally for comparison (up to 10 MB per file; legacy .doc files, layout styling, tracked changes, and scanned image-only PDFs are not supported). Binary .xlsx files are not read directly, so copy two columns from Excel and paste them in, or export as .csv.
How do I find lines present in only one of two unsorted lists?
Open "Options" below the editor and check "Sort lines before comparing (Set diff)". The result separates lines into "Only in Original", "Only in Modified", and "In Both" tabs with a "Copy List" button.
What file size limit applies, and what happens with very large texts?
Loaded files can be up to 10 MB each across all formats, and Unicode NFC normalization runs automatically to prevent false diffs from combining accents or PDF copy-paste. For very large inputs, the viewer switches to line-level comparison and loads rows incrementally with "Show more lines".