XML Tree Viewer
Explore an XML document as an expandable tree. Collapse branches to focus on one part, search for an element or value, and copy any node's XPath with one click. Everything runs in your browser, nothing is uploaded.
XML
Ready. Press Load tree.
How to use the XML Tree Viewer
- Paste XML into the input pane.
- Press Load tree.
- Expand or collapse branches, search, and copy any XPath.
Example
The catalog as a tree: catalog, two books, their titles and prices.
<catalog><book id="1"><title>JSON Basics</title><author>Ada</author><empty/><price>9.99</price></book><book id="2"><title>XML Guide</title></book></catalog>
Frequently asked questions
What does the tree show?
Every element, attribute, and text value, indented by depth. Leaf elements show their text inline; elements with children show a count and can be expanded.
How do I get the XPath of a node?
Click the path button on any row to copy its XPath, for example /catalog/book[1]/title.
Does it handle large documents?
Yes. Only the visible rows are rendered, so even documents with thousands of nodes stay responsive.