XML Tree Viewer
Explore an XML document as a collapsible tree of elements and attributes.
Input
Result
How to use
Viewing XML as a tree
Paste XML and press View to expand it into a tree with attributes shown on each node.
- Paste XML into the input editor.
- Press View.
- Click nodes to expand or collapse.
Frequently asked questions
Are attributes visible?
Yes, attributes are displayed alongside the element name in a distinct colour.
Is large XML supported?
Yes, but very large documents start collapsed for performance.
Related tools
XML Formatter
Pretty print XML with consistent indentation and optional attribute wrapping.
XML to JSON
Convert XML into JSON with attributes and repeated elements handled sensibly.
JSON Tree Viewer
Turn JSON into an interactive, collapsible tree with array lengths and value types.
YAML Formatter
Parse and re-serialise YAML with consistent indentation and validation.
YAML Validator
Validate YAML syntax and get a precise error when indentation or structure is wrong.
XML Validator
Check that an XML document is well formed and see a clear error description.