ToolSandookYour Digital Box of Useful Tools
← All tools

🏷️ XML Compare

How to use: Paste or load the original and the changed XML, choose options such as Ignore attribute order, then press Compare XML. Both are validated and formatted first, then the differences are shown line by line.

Loading the tool…

About the XML Compare

XML files from APIs, config files, invoices and feeds often differ only in indentation or attribute order, which makes a normal text compare noisy. The ToolSandook XML Compare tool formats both documents the same way first, so you see only real changes.

Paste the two XML documents or load them from files. Each one is checked for valid XML, with the error shown if it is broken. You can ignore attribute order, comments, upper and lower case and extra spaces. Differences are highlighted side by side with line numbers.

How to use the XML Compare

  1. Paste or load the original XML.
  2. Paste or load the changed XML.
  3. Choose options such as Ignore attribute order.
  4. Press Compare XML and review the differences.

Features

  • Validates both XML documents
  • Formats both the same way before comparing
  • Ignore attribute order, comments, case, spaces
  • Private: runs in your browser

Frequently asked questions

Why does it say my XML is not valid?

The document has a syntax problem, such as a missing closing tag or an unescaped & character. The error message shows what the browser found.

Does indentation count as a difference?

No. Both documents are formatted the same way first, so changes only in spacing or line breaks are ignored.

Does it understand namespaces?

Element and attribute names are compared as written, including their prefixes.

Is my XML uploaded?

No. Everything runs in your browser.

Related tools