vtree is a free online XML tool — parse, explore, and convert XML documents with no account, no sign-up, and nothing ever leaving your browser.
XML (Extensible Markup Language) is a text format for structured data built from nested tags, e.g. <route path="/health" />. Unlike JSON, an XML element can carry both attributes and child content at once, which is why it's still common in feeds, SOAP APIs, and older enterprise systems and config files.
Yes — the XML Tree View is the default way to explore an XML document in vtree: a collapsible, indented view of every element and attribute, with search and inline editing. Switching your XML to Tree View is automatic — paste it and it's already there.
Yes — the XML Graph View draws the same document as a node-link diagram, showing how elements nest and connect at a glance, without scrolling through deeply indented markup. Available for XML the same way it is for JSON, YAML, and TOML — switching your XML to Graph View is one click on the Graph tab, no separate conversion step.
Yes — Download as PNG (a high-resolution, 2x-scale image) or Download as SVG (a scalable vector you can drop straight into a design tool or a doc) from the toolbar above the graph. The file is named after your document, e.g. service-graph.svg, and the background matches whichever theme you're using.
No. Parsing, formatting and converting all run in your browser — your document is never sent to a server.
Every attribute becomes a field prefixed with @_, keeping it distinct from any child element with the same name. Text content inside an element gets its own "#text" field — the standard XML-to-JSON convention most tooling uses.
JSON only has objects, arrays, and primitive values. XML elements can carry attributes, child elements, and text content all at once, and the same tag can legally repeat as siblings — vtree turns repeated siblings into an array and attributes into @_-prefixed fields, then everything downstream works exactly like JSON.
Yes — the Convert to JSON button turns the current document into pretty-printed JSON in a new tab.
Yes — open both in tabs and use the Diff tab. Because XML parses to the same data model as JSON, vtree diffs the structures directly.
Attributes, elements, and repeated siblings are all preserved. Mixed content — text interleaved with child elements — doesn't round-trip perfectly, since converting to a JSON-shaped tree can't fully preserve that ordering. For config- and data-style XML, that's rarely an issue.
Yes — since XML parses into the same data model as JSON, the Schema and Validate tabs work exactly as they do for JSON: infer a schema from a known-good document, or paste your own, and check new documents against it.
Yes — the same simplified layout as the JSON tool: a Response/Result toggle instead of a side-by-side split, with Tree, Table, and Validate available.
Yes, vtree is free with no account or sign-up required.