Diff Checker

Compare two versions of text, code or JSON and see exactly what changed, line by line and word by word.

How to use Diff Checker

  1. Paste the original text on the left and the changed text on the right, or drop two files on the page.
  2. Choose Side by side or Unified view.
  3. Tick Ignore whitespace, Ignore case or JSON (ignore key order) if those differences don't matter.
  4. Jump between changes with the arrows, and use Copy patch to get a unified diff.

Frequently asked questions

How do I compare two text files online?

Paste each version into one side, or drop both files anywhere on the page. Changed lines are highlighted, and the words that differ within a line are marked.

Can I compare JSON while ignoring key order?

Yes. Tick JSON (ignore key order) and both sides are pretty-printed with sorted keys first, so only real changes in values show up.

Can I export the differences as a patch?

Yes. Copy patch gives a standard unified diff, the same format as diff -u, which works with git apply or patch.

Is the text I compare kept private?

Yes. The comparison runs in your browser. Inputs are remembered in your browser's local storage so they survive a reload, and are not sent anywhere.