Skip to content
hateitall

Diff Checker

See exactly what changed between two versions of a text or file, down to the word.

Processed locallyIn: Text, CodeOut: Diff, Patch

Loading tool…

How to use diff checker

  1. Paste or open the original on the left and the changed version on the right.

  2. Choose side by side or unified layout; on a phone the two sides stack.

  3. Turn on ignore whitespace or ignore case if those changes do not matter.

  4. Copy or download the result as a unified .patch file.

What this tool does

  • Finds the smallest set of line changes with the Myers algorithm, the method git uses by default.
  • Highlights the words that changed inside each modified line.
  • Folds long unchanged stretches so the changes stand out, with three lines of context.
  • Exports a standard unified diff that git apply and patch can read.

How the result is verified

After every comparison the edit list is replayed on the original text and must rebuild the changed text exactly. The result of that check is shown under the diff.

Frequently asked questions

Can I compare two files?

Yes. Use Open file on each side or drop a file onto each box. Any text file works, from source code to CSV.

Is the .patch file compatible with git?

Yes. It uses the unified format with three lines of context, which git apply and the patch command both read. Rename the a/ and b/ paths to your real file path first.

Is my data uploaded to a server?

No. Everything you drop, paste or type is processed by code running in this browser tab. You can check it yourself: open your browser's developer tools, watch the Network panel, and use the tool. No request carries your data.

Compare two JSON documents by structure, with the path of every change

JSON→ ReportLight on device

Check two files are byte-for-byte identical and see where they differ

Any file→ ReportLight on device

Side-by-side pages, magenta pixel differences, text word changes, and a local JSON report.

PDF→ JSONHeavy on device

Indent HTML neatly while keeping pre, textarea and script content intact

HTML · SVG→ HTMLLight on device

Beautify minified CSS with clean indentation, selectors and media queries

CSS · Text→ CSSLight on device