Paste XML or drop a file and read it as a tree instead of a wall of tags.
Reading the document…
Paste XML, or open a file, to read it as a tree, format it and check that it parses.
How It Works
Drop in a feed, a sitemap, an export or a config file, or open a .xml file from your computer. The page starts with a sample RSS feed so you can see the tree, the namespaces and the statistics working straight away.
Every element becomes a row you can fold, with its attributes, its namespace prefix and its child count. Filter by tag name or attribute value to find one record in a file of thousands. Text, CDATA, comments and instructions are each labelled.
Switch to Formatted for clean indentation, or Minified to strip the whitespace between elements. Copy it, download it, or put a colour-coded page of it on a live link - no account needed for the 30-minute link, and claiming it is free.
About This Tool
An XML file is readable in principle and unreadable in practice. This turns one into a tree you can fold, and tells you exactly where it breaks when it does.
XML turns up long after you stopped expecting it: an RSS feed you are debugging, the sitemap your SEO tool keeps rejecting, an export from an accounting package, a SOAP response, a settings file for a program that will not start. Paste it here and this XML viewer does three things at once. It shows the document as a collapsible tree, with each element's attributes, namespace prefix and child count on the row. It reformats it with proper indentation, which is the part people mean by an XML formatter or an XML beautifier. And it checks that it actually parses, which is usually the real question.
Browsers do not throw when XML is broken. They quietly hand back a document containing a parsererror element, worded differently in every engine, and most online viewers just print that raw. This one reads whichever wording it gets, works out the line and the column, prints the offending line with a caret under the character, and adds a plain-English note when the mistake is a familiar one: a tag closed with the wrong name, two root elements, a bare & that should have been &, an HTML entity such as that XML has never heard of, an attribute without quotes, a duplicated attribute, a CDATA section that never ends. Where the browser says nothing useful, the tool walks the source itself and stops at the first character that cannot be right.
This matters more in XML than in most formats. Whitespace between elements is decoration and can go; whitespace inside a text node is data, and deleting it changes the document. So the Minified tab only removes the indentation between tags, never a space inside a value, and it leaves mixed content - text with elements inside it - exactly as it found it. Comments, CDATA sections and instructions all survive, and the saving is shown in bytes.
You do not need to be a developer. If you are trying to see what is inside a file rather than write one, the tree, the namespace summary and the document-kind line - which recognises an RSS or Atom feed, a sitemap, an SVG and a SOAP envelope by their root element - do the reading for you. The limits are honest ones: everything runs in your browser, so nothing is uploaded and nothing is stored, but the size you can open depends on your device rather than on a quota, and this checks that a document is well formed, not that it matches a DTD or a schema. If your file is JSON rather than XML, the JSON formatter is its twin, and the HTML formatter handles markup that is not well formed at all.
When you need to show someone the file rather than paste it into a chat window, the publish button puts a colour-coded page of your XML on a free OxyPages subdomain with HTTPS, without an account. That link lasts 30 minutes; claiming it is free, keeps it permanently and lets you choose the address, with custom domains available on paid plans. Instant publishing accepts up to 5 MB. See how it works or compare plans.
Questions
More Free Tools
Every tool here runs in your browser and ends the same way: one click and your HTML is on a live link.
Paste JSON to format it, check it for errors with the exact line and column, browse it as a collapsible tree, or minify it. Free and entirely in your browser.
Convert CSV or TSV to JSON, or JSON back to CSV, with quoted fields and embedded commas handled properly. Preview it as a table. Runs in your browser.
Clean up messy or minified HTML with proper indentation in one click. Runs in your browser, nothing is uploaded. Publish the result as a live page.
Try It Now
Still Here? Drop It In.
The whole pitch fits in one sentence: your HTML, on a link, in seconds.
Drag and drop your HTML file(s), folders, or ZIP file
or ·
No account needed. Your unclaimed website stays live for 30 minutes on a free subdomain. Claim it to your account to keep it permanently.