How it works

Differ canonicalises both XML documents before comparing: attributes are sorted, insignificant whitespace is dropped and CDATA is treated as text. You can also ignore comments and the order of child elements, which is handy for configuration files and SOAP or API payloads.

Everything runs locally in your browser. Your text is never uploaded to a server.

Features

Frequently asked questions

Is my data uploaded anywhere?

No. Parsing and comparison happen entirely in your browser with JavaScript. Pasted text stays in your tab and is cleared when you close it.

How do I compare JSON and ignore key order?

Choose JSON (or leave it on Auto) and keep Ignore key order ticked. Both documents are sorted and pretty-printed, so only real value changes are highlighted.

Why does my diff show every line as changed?

This is usually caused by Windows (CRLF) and Unix (LF) line endings. Differ ignores line endings by default. If you're comparing plain text, you can also tick Ignore whitespace.

Can I compare XML files where elements are in a different order?

Yes. In XML mode, tick Ignore array order and child elements will be sorted before comparing.

How do I share a diff with someone?

Click Share link. The link holds both texts in compressed form after the #, so nothing is stored on a server. Anyone with the link can open the same comparison. For very large files, use Download report to get a single HTML file you can attach to an email or ticket.

Can I save the result?

Use Copy patch or Download .diff to get a standard unified diff that works with git apply and patch.