XML Viewer — Explore XML as an Interactive Tree
Paste any XML and explore its structure as a collapsible tree. Elements, attributes and text all become nodes you can expand, collapse, search and copy — far easier to read than raw XML for large documents (SOAP responses, RSS feeds, sitemaps, build files). Parsing uses the browser's native DOMParser per the W3C XML spec, entirely in your browser — your data is never uploaded.
Features
- ✅ Tree explorer — click to expand/collapse any element
- ✅ Attributes & text — shown as
@attributes and #text nodes - ✅ Search by key or value — filter tags, attributes and text, with highlights
- ✅ Expand all / Collapse all — toggle the whole tree in one click
- ✅ Hover to copy — copy any value or an entire element subtree
- ✅ 100% private — parsed and rendered entirely in your browser, no upload, no signup
Common use cases
- Inspect a SOAP or REST XML response and copy one element
- Read an RSS/Atom feed or an XML sitemap at a glance
- Navigate a build/config file (pom.xml, .csproj, Android manifest)
- Find a tag or attribute fast by searching the tree
Why this XML viewer
Repeated sibling tags collapse into arrays and attributes are surfaced explicitly, so the tree reflects the document's real shape. The same searchable explorer also handles JSON, YAML and TOML — one tool for every data format, free and client-side with nothing sent to a server.
How to use
- Paste or type XML into the editor on the left.
- Explore the tree on the right — click nodes, search, or use Expand all / Collapse all.
- Hover any value and click the copy icon to copy it.
Related tools
- JSON Viewer — explore JSON as a tree
- YAML Viewer — explore YAML config as a tree
- TOML Viewer — explore TOML config as a tree
- XML Formatter — beautify and validate XML
- XML to JSON — convert XML to JSON
- Universal Code Editor — edit & run code in 25+ languages