XML Compare

Paste two XML documents and see the differences — everything runs in your browser.

Left 0 lines
1
Right 0 lines
1
Left 0 B · Right 0 B
Ready to compare

Why Use Our XML Compare?

  • Line and character-level highlights
  • Added, removed and unchanged counts
  • Synchronised scrolling between panes
  • Works completely in your browser
  • Handles config, feed and SOAP XML

Features & Supported Capabilities

  • Auto-formats pasted XML before diffing
  • Myers diff algorithm for accurate change detection
  • Handles files up to 10 MB per side
  • Optional line wrapping for long lines
  • Copy or download either side independently

About this XML compare and diff checker

Comparing raw XML is noisy because indentation and line breaks differ even when the content is identical. This free online XML compare tool auto-formats both documents before diffing them and then highlights the differences line by line, so what you see are the real changes.

It runs in your browser with nothing uploaded. For non-XML text use text compare. To tidy a single document use the XML formatter, or view it as a tree in the XML viewer.

Frequently Asked Questions

Everything you might want to know about the online XML Compare tool.

It compares two XML documents side by side and highlights the elements, attributes and text that were added, removed, or changed between them — useful for reviewing config changes or two versions of a feed.
Yes. Pasted XML is auto-indented first, so two documents that differ only in whitespace or minification won't drown the real differences in formatting noise.
Line-level, with character-level highlights inside changed lines — so you can see exactly which attribute or text value changed within a line, not just that it did.
No. The comparison runs entirely in your browser. Neither side's XML is ever uploaded, stored, or logged.
You can paste text or upload a file up to 10 MB on each side.
Lines only in the left document are marked as removed, lines only in the right document are marked as added, and unchanged lines are shown without a highlight.
Yes, each side's XML can be copied or downloaded independently, the same as the other editors on this site.
Yes. Identical head and tail regions are trimmed before diffing, so documents that share long identical sections compare quickly even at tens of thousands of lines.
The XML Formatter tidies one document. XML Compare takes two documents and shows exactly what's different between them.