OxyPages

XML Viewer, Formatter And Validator

Paste XML or drop a file and read it as a tree instead of a wall of tags.

Free. No account. Live in seconds.
XML
Tree

Reading the document…

Paste XML, or open a file, to read it as a tree, format it and check that it parses.

A colour-coded page of this XML on its own link. Free. No account.

How It Works

How To Use The XML Viewer

  1. 1

    Paste Your XML Or Open A File

    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.

  2. 2

    Read It As A Tree

    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.

  3. 3

    Format, Minify Or Publish

    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

What This XML Viewer Does

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.

The Error Message You Actually Wanted

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.

What Minify Does, And Does Not Do

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.

Who It Is For, And Its Limits

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.

Then Put It On A Link

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

Frequently Asked Questions

No. Reading, formatting, minifying and validating all happen in your browser, and nothing leaves your device. Your XML is only sent to OxyPages if you press the publish button.

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.

  • No Account Needed
  • Free SSL
  • 30-Minute Unclaimed Link, Claim To Keep It