Skip to main content

Diff Checker

Runs locally

Compare text, code and JSON side-by-side or inline, ignore whitespace/case and export patch.

What is Diff Checker?

Compare two texts, source files, or JSON documents side-by-side or inline at line, word, or character granularity. Ignore whitespace, case, line endings, or JSON key order, collapse unchanged sections, and export unified diff patches or HTML reports.

How to use Diff Checker

  1. Step 1

    Paste or drop Original text on the left and Modified text on the right.

  2. Step 2

    Choose Text, Code, or Semantic JSON mode and Side-by-Side or Unified view.

  3. Step 3

    Toggle ignore whitespace, ignore case, ignore blank lines, or collapse unchanged context.

  4. Step 4

    Copy or download a standard unified `.patch` file or standalone HTML diff.

Features

  • Side-by-side and inline diff views with line numbers
  • Line, word, and character-level highlight granularity
  • Semantic JSON mode (ignores key ordering and formatting differences)
  • Ignore whitespace, case, blank lines, and CRLF/LF differences
  • Collapse unchanged regions and export unified `.patch` or HTML

Example

Input

Original: {"a":1,"b":2} | Modified: {"b":2,"a":1,"c":3}

Output

+ "c": 3 (key reordering ignored in Semantic JSON mode)

Semantic JSON diff highlights only real data additions instead of formatting noise.

Frequently asked questions

Can it ignore JSON key order?

Yes. Switch to Semantic JSON mode to normalize key order before diffing.

Can I compare two files by drag-and-drop?

Yes, drop files directly onto the Original and Modified editors.

Can I export a git-compatible patch?

Yes, click Export Unified Patch to download a standard .patch file.

Is my code sent to a server?

No. Diff computation runs locally in your browser.