ToolLineup

XML Viewer

This XML viewer turns a document into an interactive tree you can fold, filter and navigate, so you can explore by structure instead of scrolling through markup. Attributes are shown rather than hidden — each appears prefixed with @_, which keeps it distinguishable from a child element that happens to share its name. A filter box narrows the tree to the branches whose name or value matches, and every row can copy its own accessor path. The document is parsed and rendered entirely in your browser.

How it works

Renders the document as a collapsible tree so you can navigate by structure instead of scrolling. Attributes appear alongside child elements with an @_ prefix, so nothing in the document is hidden from you.

Use the filter to keep only the branches whose name or value matches, and the path button on any row to copy its accessor path.

Everything runs in your browser — nothing you paste is sent to a server.

XML input
Paste XML here…
Tree view

The tree appears here once you paste a valid document.

How to view XML as a tree

  1. Paste your XML into the input on the left.
  2. The document appears as a collapsible tree, opened two levels deep.
  3. Filter by name or value to narrow it, and copy any path with the path button.

Where the attributes go

Attributes are data, so they are shown rather than hidden. Each appears as an entry prefixed with @_, which keeps it distinguishable from a child element that happens to share its name — a real ambiguity in documents where <book id="b1"> sits beside an <id> element.

Common use cases

  • Exploring an unfamiliar API response or export without reading it line by line.
  • Finding which element holds the value you need, then copying its exact path.
  • Checking how deeply a document nests before writing code to walk it.

Frequently asked questions

What does an XML viewer do?

It renders the document as an interactive tree rather than raw markup, so nested elements can be folded away and you can navigate a large document by structure instead of scrolling.

Are attributes shown in the tree?

Yes. Each attribute appears as an entry prefixed with @_, which keeps it distinct from a child element of the same name — a real ambiguity in documents where an id attribute sits beside an id element.

How do I find a specific element?

Type into the filter box. It keeps only branches whose name or value matches and expands the path to each one, so you can see where the match sits in the document.

Can I copy the path to a value?

Yes. Hover any row and click the path button to copy its accessor path, ready to paste into code that walks the parsed document.

Is my XML uploaded when I view it?

No. Parsing and rendering happen entirely in your browser.

Related tools