Skip to content

XML Viewer Online

Open an XML file and explore it as a collapsible tree.

XML source

Tab inserts indentation. Press Escape, then Tab, to move focus out of the editor.

Document

11 elements · depth 3
View
  • <catalog>3 children
    • <!-- Spring list -->
    • <book id="bk101" format="hardcover">4 children
      • <author>Gambardella, Matthew
      • <title>XML Developer's Guide
      • <price currency="EUR">44.95
      • <published>2000-10-01
    • <book id="bk102" format="ebook">4 children
      • <author>Ralls, Kim
      • <title>Midnight Rain
      • <price currency="EUR">5.95
      • <description>A former architect battles corporate zombies & an evil sorceress.

How to view an XML file

  1. Click Open XML file, drag a file onto the viewer, or paste XML.
  2. Browse the document as a tree: click an element to expand or collapse it.
  3. Use Expand all or Collapse all, or switch to Formatted to read the indented source.

Explore XML as a tree

Browsers show XML as raw text or refuse to display it, and code editors show one long line. This XML viewer online turns any XML document into a navigable tree: every element with its attributes, text and the number of children, so you can drill into the part you need and skip the rest.

It also tells you when a file isn't valid XML, with the line highlighted — useful when a file “won't open” somewhere else. Files are read in your browser and never uploaded.

What people use it for

  • Inspecting exports from accounting, e-commerce or CRM systems.
  • Exploring RSS and Atom feeds, sitemaps and podcast feeds.
  • Reading GPX and KML map data, Android layouts or .plist files.

Related tools

Need the indented source as a file? The XML formatter creates it. To use the data in JavaScript, convert it with XML to JSON. For errors, the XML validator explains each problem, and for web pages there's the HTML viewer.

Frequently asked questions

How do I open an XML file online?
Click Open XML file or drag the file onto the viewer. The document is shown as a collapsible tree. The file is read in your browser and not uploaded.
What can I see in the tree view?
Every element with its attributes, text content, comments and CDATA, and how many children it has. Expand or collapse branches one by one, or all at once.
Can I view large XML files?
Yes. The formatted view shows the whole document; the tree view shows the first 3,000 nodes so it stays responsive in the browser.
What if the file isn't valid XML?
The viewer highlights the line with the error and explains what's wrong, so you can fix it right in the editor.