XML Compare
Your data never leaves your browserCompare two XML documents and highlight element, attribute, and value differences.
Paste or type content into both panels to see the diff.
Brie — Bug Reporting Tool
Comparing expected vs. actual output?
Brie captures the before and after with session replay, so your team can see exactly what changed and when.
About XML Compare
Paste two XML documents into the side-by-side panels to see exactly which elements, attributes, and values differ. The tool performs line-based diffing on the raw XML text, making structural changes easy to spot. Use the "Ignore whitespace" option to normalize indentation differences so only meaningful content changes appear in the diff. Ideal for comparing API responses, configuration files, SVG files, and SOAP messages.
How to use
- Paste the first XML document into the left panel.
- Paste the second XML document into the right panel.
- The diff output shows additions in green and removals in red with strikethrough.
More Comparison / Diff Tools
Frequently Asked Questions
FAQs about XML Compare
Does this tool validate XML before diffing?
No. The tool performs a line-based text diff on whatever you paste in, without parsing or validating the XML structure. You can use the XML Validator tool to check validity first.
How should I format XML before comparing?
For the best diff results, format both XML documents with consistent indentation first. Use the XML Formatter tool to pretty-print both documents, then compare them here.
Can I compare XML attributes?
Yes. Since the diff is line-based, attribute changes on the same element will appear as removed and added lines for that element.
Does it handle XML namespaces?
Yes. The tool treats XML namespaces as plain text, so namespace declarations and prefixed elements are diffed like any other content.
Is my XML data kept private?
Yes. All processing is done entirely in your browser. No data is sent to a server.