Loading editor…
Output initialises when this pane is visible.
XML Studio
Compare two XML files with per-side Sort, Ignore WS, Format, and Minify.
100% in your browsernothing is uploadedLoading editor…
Output initialises when this pane is visible.
Step-by-step guide for XML Diff & Compare. Everything runs locally in your browser.
Workflow tip: if the diff is mostly whitespace, click Format on both sides, then toggle Ignore WS.
| Goal | Try |
|---|---|
| Same XML, different element order | Sort on both sides |
| Noisy indentation only | Ignore WS or Format both sides |
| Readable side-by-side review | Format on one or both sides |
Need tree view, schema validation, or other modes? Open XML Editor Pro for the full guide with Diff examples and workflows.
What this XML Diff & Compare page offers — processed locally in your browser.
Compare original and modified XML with inline change highlighting.
Sort siblings, ignore whitespace, format, or minify each side independently.
Swap A/B in one click and load sample pairs from the sidebar.
All processing runs in your browser. Nothing is uploaded.
Common questions about XML Diff & Compare.
Yes. Parsing, formatting, diffing, validation, XPath, transforms, and XSLT all run inside your browser.
Data is not sent to a server. The only local storage is your session in localStorage, which
you can clear in browser settings.
After the first visit (when Monaco and assets are cached), you can edit, format, diff, and transform without a network connection. “Load from URL” still needs network access and a CORS-friendly server.
Yes. Open Diff mode (Ctrl/⌘+D), paste the second file on side B, and keep Sort enabled on both sides. Sibling elements are reordered using a stable canonical ordering so equivalent documents align. Turn Sort off when sequence matters (e.g. ordered event lists).
Quick try: load the sample catalog, open Diff, paste the same XML on B but swap the two
<book> blocks. With Sort on, the diff should be empty; with Sort off, you will see the
blocks highlighted as changed lines.
Those options rebuild the view from your source text: Sort reorders elements; Ignore WS normalises whitespace in text nodes and tells the diff engine to ignore leading/trailing spaces on each line. Your stored source is kept separately so toggling options updates the display without losing the original unless you edit the diff pane itself.
When Sort or Ignore WS is on, the file is parsed with
DOMParser and comments are not preserved in the diff view. For comment-sensitive compares,
turn both off on that side — Format/Minify still work on the raw text.
XPath 1.0 (browser document.evaluate). Unprefixed names match local element names; the
sample catalog avoids a default namespace so paths like /catalog/book/title work as
expected.
JSON, YAML, CSV, Markdown, and HTML table. Pick a target in Transform mode and click Convert. Conversion uses the browser DOM — very large documents may take a moment.