Skip to main content

Diff Checker

Compare text, code and extracted document text in your browser.

Import File into Original TextCopy Original TextDownload Original TextClear Original Text
Cursor line
1
Column (UTF-16)
1
Logical lines
1
Characters (UTF-16)
0
UTF-8 bytes
0
Drop a file here or use Import File

Import File into Modified TextCopy Modified TextDownload Modified TextClear Modified Text
Cursor line
1
Column (UTF-16)
1
Logical lines
1
Characters (UTF-16)
0
UTF-8 bytes
0
Drop a file here or use Import File

Save comparison

Save this comparison privately in your browser.

    Developer tools · Text comparison

    How to Compare Text and Code

    Add two versions above to see their text differences. Comparison starts automatically after an edit; it marks additions, removals and replacements with source line numbers while preserving the text in both editors.

    1. Type, paste or import the original and modified versions.
    2. Review the highlighted changes and use Previous or Next Change to navigate.
    3. Choose a result view, then decide whether to merge, save or share.

    Key Features

    • Split and Unified views show the same comparison side by side or in one sequence; narrow screens use the readable unified layout by default.
    • Case and whitespace options change comparison equivalence, not source text. Case Sensitive starts on; Ignore Whitespace starts off. When options make different inputs equivalent, the page does not claim their source values are identical.
    • Merge asks for an Accept or Reject decision for every change and requires confirmation before replacing both editor values.
    • Save and Share are deliberate actions. Named comparisons use IndexedDB, draft recovery uses local browser storage, and a Share link contains compressed text in its URL fragment. Compression is not encryption.
    • File imports extract text from common text/code files, CSV, DOCX, XLS/XLSX and PDF. Spreadsheet imports use the first worksheet; PDF extraction has no OCR. Formatting, formulas and document structure are not compared.

    Text comparison, not structural code analysis

    Code and configuration files are compared as text. JSON, YAML and XML are not parsed as data structures, and the tool does not execute code or decide whether two programs behave the same. CRLF and LF compare as equivalent; original editor text stays intact, and a final-newline difference remains significant.

    Comparison and file extraction run in your browser. Drafts and named saves stay in the current browser profile, are not encrypted, and are not an independent backup. Avoid saving or sharing sensitive content on a shared device.

    Practical Uses

    Code and configuration review

    Find edited values, added lines and removed settings between revisions.

    Draft revisions

    Review wording changes between two versions of a text draft.

    Extracted documents

    Compare readable text from supported files when formatting is not the goal.

    Frequently asked questions

    Diff Checker FAQs

    Is Diff Checker free to use?

    Yes. Compare text and code without an account. File-size, extraction and computation limits still apply.

    Does it store my data?

    Comparison and file extraction run in your browser, without uploading your content. Automatic drafts and named saves use unencrypted local browser storage. You can disable draft recovery or discard the stored draft in Local draft recovery settings. Anyone with a Share link can read the text encoded in its URL fragment.

    How much text can I compare?

    Each input supports up to 1,000,000 UTF-16 code units and 20,000 source lines. Imports are limited to 2 MiB per file, with additional format-specific limits. Complex comparisons can stop below these limits; incomplete output is not applied.

    Can I use it on my phone?

    Yes. Editors stack on narrow screens, and Unified view keeps original and modified lines together. Large documents can still be limited by your browser and device memory.

    Is it safe to compare sensitive text?

    Your content is processed locally, but browser storage is not encrypted and other people using the same browser profile may access saved text. Avoid saving or sharing sensitive content. Review draft recovery settings before using a shared device.

    Which files can I compare?

    Import text and common code files, CSV, DOCX, XLS, XLSX and PDF. Comparisons use extracted text, not document formatting. Excel uses the first worksheet only; CSV and Excel serialize cells as quoted tab-separated text. PDF extraction has no OCR and may not preserve visual reading order. Failed imports keep your existing text.

    Editor lines wrap to fit each panel. Scroll vertically inside each editor to view more text. Gutter numbers identify logical lines, not visual wrapped rows. Logical lines include the trailing empty display line (empty editor: 1), unlike result source records. Cursor columns and characters use UTF-16 units; tabs count as one unit. UTF-8 bytes describe the retained text, not the imported file. Browsers display CRLF and CR as LF; editing adopts that display value. Downloads become available after validation.

    By default, case and whitespace matter. CRLF and LF compare equally; a missing final newline is a difference. Source text is not trimmed or normalized. Toolbar options change comparison keys only. Browsers represent pasted editor line breaks as LF. Comparison updates automatically after a short typing pause and waits for imports and input-method composition to finish. Cancel pauses the current comparison; editing either text resumes it.

    File formats, extraction rules and limits

    Import one file per editor or drop it onto its panel. Maximum 2 MiB per file; 1,000,000 UTF-16 code units and 20,000 source lines after extraction. Imports replace the editor only after success. Automatic comparison pauses while an import is running.

    • Text/code: UTF-8 or BOM-marked UTF-16. Whitespace, indentation, BOMs and original line endings are retained until you edit the textarea. Legacy encodings and binary files are rejected.
    • CSV: comma-separated cells, without header inference or number conversion. CSV and Excel use quoted TSV: tabs separate cells, LF separates rows, embedded tabs/newlines/quotes are quoted and quotes doubled. Commas inside cells stay literal.
    • DOCX: extracted text and paragraph boundaries, not formatting comparison. Pictures, layout and some document features cannot be represented as text.
    • XLS/XLSX: first worksheet only; cached formatted values, not workbook formatting. Formulas without cached values are shown as literal formula text. No formulas or macros are executed. Maximum 10,000 rows, 256 columns and 100,000 grid cells. CSV has the same table limits.
    • PDF: extracted text only, no OCR. Reading order and spacing are inferred; columns and visual layout may differ. Password-protected PDFs are unsupported. Maximum 100 pages and 100,000 text items.
    • DOCX/XLSX archives: maximum 512 entries, 8 MiB per expanded entry and 16 MiB total expansion. Imports stop after 30 seconds; no partial output is applied.

    Documents stay in this browser. Parser code and font resources load locally from this website; document contents are never uploaded. Import failures preserve your existing text.