XML Viewer

Paste or upload XML and explore it as a collapsible tree — nothing leaves your browser.

XML Source 0 lines
1
Tree View
0 nodes
1
UTF-8 · 0 B Click a tag name to copy its path
Waiting for input

Why Use Our XML Viewer?

  • Instant collapsible tree view
  • Search tags, attributes and values
  • Click-to-copy element paths
  • Works completely in your browser
  • No installation or sign-up

Features & Supported Capabilities

  • Expand or collapse all nodes in one click
  • Shows a child element count on every node
  • Download the tree as an SVG image
  • Handles files up to 10 MB
  • Download the formatted XML output

About this XML viewer

Large XML is hard to understand as plain text. This free online XML viewer displays a document as an interactive, collapsible tree, so you can expand only the elements you care about. Search tags, attributes and values, and click any element to copy its path.

Everything runs in your browser and nothing is uploaded. If you need indented text instead of a tree use the XML formatter. To test an XPath against the same document use the XPath tester, or convert it with XML to JSON.

Frequently Asked Questions

Everything you might want to know about the online XML Viewer.

An XML viewer displays an XML document as an interactive, collapsible tree instead of plain text. Each element becomes a node you can expand or collapse, so you can explore the structure of large documents without scrolling through thousands of lines.
The XML Formatter neatly indents XML as text. The viewer turns it into a tree you can navigate: collapse branches you don't care about, expand the ones you do, see a count of child elements, and click any tag to copy its path. To compare two XML documents instead, see XML Compare.
No. Everything happens locally in your browser. Your XML is parsed and displayed on your own machine and is never uploaded, stored, or logged.
Yes. Type in the Search tree box and the viewer highlights matching tags, attributes and values, automatically expanding the branches that contain them and hiding the rest.
Click any tag name in the tree. Its location is copied to your clipboard as a path such as /library/book[3]/title, ready to paste into your code or an XPath query.
You can paste text or upload a file up to 10 MB. Very large documents (tens of thousands of elements) are best viewed with the XML Formatter, and the viewer will suggest this when a document is too big to draw as a tree.