XML Viewer Online — Read XML as a Table or a Tree
A free online XML viewer that does more than re-indent your file. Paste or upload any XML and read it two ways: as a sortable, searchable table where repeated elements become rows, or as a foldable tree that mirrors the document's exact structure. Everything runs in your browser — nothing is uploaded.
A free tool · Updated 29 May 2026
Why a real XML viewer beats a text box
Most "XML viewers" just pretty-print: they add line breaks and indentation so the angle brackets line up. That helps a little, but a 2,000-line SOAP envelope or a feed with 300 <item> entries is still a wall of tags you have to read top to bottom. You can't scan it, you can't sort it, and you certainly can't jump to the one record you care about.
This viewer gives you two genuinely different lenses on the same document. When your XML is a list of similar things, the table view turns it into rows you can sort and search. When you need the full picture — attributes, namespaces, mixed content, deep nesting — the tree view shows every node exactly as it sits in the file. You pick whichever matches the question you're asking.
Table view: XML as rows and columns
Point the viewer at XML that repeats — a product catalog, an order list, a feed — and it finds the repeating element and lays each one out as a table row. Consider this fragment:
<catalog>
<book id="bk101">
<author>Gambardella, Matthew</author>
<title>XML Developer's Guide</title>
<price>44.95</price>
</book>
<book id="bk102">
<author>Ralls, Kim</author>
<title>Midnight Rain</title>
<price>5.95</price>
</book>
</catalog>
Each <book> becomes a row, and its child tags and attributes — id, author, title, price — become sortable columns. Click a header to sort by price; type in the search box to filter to one author; click a row to expand the full element, including any nested tags that didn't fit as columns. The column picker favours the fields that appear most often and the ones with familiar names, so the useful stuff lands up front automatically.
Tree view: the document's true shape
Not all XML is tabular. Config files, single SOAP bodies, and deeply nested documents are better read as a hierarchy. Tree view renders your XML as collapsible nodes: every element, attribute, and text value is preserved in order, and you fold sections you don't care about to focus on the ones you do. It's the honest, lossless view — nothing is summarised or hidden. For very large documents, branches expand lazily, so even a multi-megabyte file opens without freezing the tab.
Open the viewer in three steps
1 Paste or upload your XML
Open the app and paste your XML into the editor, or click the upload button to load an .xml file from your computer. The file is parsed right there in the browser — it is never sent anywhere.
2 Choose Table or Tree
Hit View as Table to get rows and columns, or View as Tree for the foldable structure. You can also Format the XML to pretty-print it, or Minify it back to a single line.
3 Sort, search, expand
Click any column header to sort, type in the search box to filter across every field (including nested content), and click a row or a tree node to expand its full detail.
SOAP, RSS, POM, SVG — it all works
XML shows up in a hundred dialects, and this viewer treats them all as plain XML. A SOAP response, an RSS or Atom feed, a Maven pom.xml, an SVG image, or any custom API payload — paste it and the same table-and-tree logic applies. Repeated elements like feed items or response records become rows; envelopes and headers stay readable as a tree. There's no schema to configure and no format to declare first.
Where does my XML go?
Nowhere. This is a single static page with no backend and no upload endpoint. Your XML is parsed and rendered entirely by your browser's built-in engine, so the people running the site cannot see what you paste. That makes it safe for the SOAP payloads and internal feeds you'd never want to drop into a random server-side converter.