XML Formatter
Beautify, minify, and validate XML with exact line and column errors for unclosed tags, bad entities, and more.
Compare two XML documents and see exactly what changed. Free, instant, and 100% in your browser.
Paste XML into both editors to see the differences.
An XML compare tool, or XML diff tool, shows the differences between two XML documents. It is useful for reviewing configuration changes, comparing SOAP or API responses, checking generated files, and debugging data exports.
A plain text diff reports noise such as indentation changes or reordered attributes. This tool normalizes both documents first, so you only see the changes that matter.
Both documents are re-indented the same way first, so whitespace and line breaks never show up as changes.
In XML, attribute order has no meaning. With the option enabled, reordered attributes are not reported.
Side-by-side, unified, and a structural changes list with a path for every difference.
Both inputs are validated as you type, with the exact line and column of any syntax error.
Long unchanged sections are collapsed, so big documents with a few changes stay fast and readable.
The comparison runs entirely in your browser. Nothing is uploaded or stored.
Paste or upload the original XML on the left and the modified XML on the right. Differences appear instantly below, with removed content in red and added content in green.
No. The XML specification says the order of attributes is not significant, so <a x="1" y="2"/> and <a y="2" x="1"/> are equivalent. Keep Ignore attribute order enabled to hide these differences.
Yes. In XML, the order of child elements is part of the document, so reordered elements are shown as changes in the side-by-side and unified views.
Each difference is shown with a path such as $.config.server["@port"]. Element names are separated by dots, @ marks an attribute, #text is an element's text, and [0] selects one of several elements with the same name.
Yes. The comparison runs entirely in your browser. Your XML is never sent to a server, logged, or stored.
Beautify, minify, and validate XML with exact line and column errors for unclosed tags, bad entities, and more.
Convert JSON to well-formed XML with custom root and item names, attributes, and indentation.
Convert XML to JSON with attributes, repeated elements as arrays, and automatic number and boolean detection.
Convert XML documents and configs into clean, readable YAML.