Diff Checker – Compare Text & Code

Compare two texts, code files or configs and highlight differences side by side or unified, by line, word or character. Export a .patch file. Private.

Runs 100% in your browser. Nothing you paste is uploaded.

Original

Changed

About the Diff Checker

Paste the original and changed versions to see exactly what differs. Line mode shows a side-by-side or unified view with changed words highlighted inside modified lines; word and character modes show inline differences for prose and short strings. Options ignore whitespace or case, and you can export a standard unified .patch.

Comparing prose or two lists rather than code? Text Compare shows a similarity score, word-level changes and list differences.

Tip: format both sides first (e.g. with the JSON Formatter using “Sort keys”) to compare JSON documents semantically.

Features

  • Side-by-side and unified views
  • Line, word and character granularity
  • Intra-line word highlighting
  • Ignore whitespace / case
  • Upload files
  • Export unified .patch

How to use it

  1. Paste or upload the original and changed text.
  2. Choose the view and comparison granularity.
  3. Review the highlighted changes or download a patch.

Frequently asked questions

Are my files uploaded?

No — the diff is computed in your browser with the jsdiff library.

Can I compare JSON regardless of key order?

Format both documents with key sorting enabled first, then diff the results.

Esc