vtree — a free XML Tree Viewer, XML Graph Viewer, and Table view, plus a parser and converter. Attributes and elements both stay visible, generate mock data from an inferred schema, and convert XML to JSON, all in your browser.

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.

Features

Frequently asked questions

What is XML?

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.

Is vtree an XML tree viewer?

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.

Does vtree have an XML graph viewer?

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.

Can I download the XML graph view as an image?

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.

Is my XML uploaded anywhere?

No. Parsing, formatting and converting all run in your browser — your document is never sent to a server.

How are attributes represented?

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.

What's the difference between XML and JSON?

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.

Can I convert XML to JSON?

Yes — the Convert to JSON button turns the current document into pretty-printed JSON in a new tab.

Can I compare an XML file against a JSON one?

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.

Are namespaces, comments, and mixed content preserved?

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.

Can I validate an XML document against a schema?

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.

Does the XML tool work on mobile?

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.

Is vtree free to use?

Yes, vtree is free with no account or sign-up required.