Free tool · XML file viewer
Free XML viewer
Paste XML or open an .xml file and explore it as a collapsible tree. Errors point to the exact line and column. Format it, minify it, or publish it as a shareable link.
The page shows the formatted XML as text, never as a running document. Published free with no signup, it is live for 7 days; sign up free to keep it. A published page is public to anyone with the link and noindex.
How it works
Open and check an XML file in three steps
Paste or drop
Paste XML into the editor, or open an .xml file. It is checked as you type, and a broken file shows the line and column of the first error with a plain reason.
Explore the tree
Open and close elements in the tree, with attributes inline, child counts on closed branches and the line each element starts on. Or switch to the formatted view.
Format, copy, or publish
Pretty-print with a 2-space indent or minify to one line, copy the result, or publish the formatted XML as a page you can send as a link.
Where XML comes from
An XML file viewer for the files you get handed
Feeds and sitemaps
RSS and Atom feeds, sitemap.xml files and podcast feeds: check that a feed is well-formed before a reader or a crawler rejects it, and see every item at a glance.
Exports and invoices
E-invoices, bank statements, CRM and accounting exports arrive as one long XML file. Open it to find a value, count the records, and spot the tag that breaks the import.
Config and data files
Android layouts, Maven pom.xml, .csproj, .plist, KML and GPX tracks, SVG source: open the file in your browser and read it as a tree, no editor needed.
The next step
Share formatted XML as a page
Noindex by default
Published pages tell search engines to stay away, so a shared export won’t surface on Google the way most free paste sites can.
Password protection
On Solo and Team, lock pages that hold customer data with an encrypted password we can’t read, enforced before the page ever loads.
View tracking
An XML attachment goes quiet once it is sent. A page counts every view, and Solo and Team add unique viewers, country and time on page.
More free tools
Other viewers and converters
JSON viewer
Format, validate and explore JSON as a collapsible tree, with errors shown by line and column.
Open the JSON viewer →HTML encoder
Escape < > & and quotes as entities, or decode < and é back into text.
Encode or decode HTML →SVG viewer
An SVG is XML you can see: render it, check its size, and download or publish it.
Open the SVG viewer →XML viewer FAQ
Open this page, choose Open a file and pick the .xml file, or drop it on the box. It opens as a tree you can expand, with every element, attribute and text value, and it works the same on Windows, Mac, Chromebook, iPhone and Android. Nothing is installed and the file stays on your device.
It checks that the XML is well-formed: every tag closed and correctly nested, attributes quoted, one root element, and every & written as an entity. The first problem is shown by line and column with a plain reason. It does not validate against an XSD schema or a DTD.
XML knows only five named entities: &, <, >, " and '. Names from HTML such as or é are errors in XML unless the file declares them in its DOCTYPE. Write the character itself, or a number such as   or é.
Only the whitespace between tags changes. Text inside elements is kept exactly as written, an element that mixes text and tags stays on one line as it was, and so does any element marked xml:space="preserve". Attribute quotes and entities are kept too.
Nothing is uploaded: the file is read and checked by JavaScript in this tab. Files of several megabytes work. Above 2 MB the tree view switches off to keep the page fast, but checking, Format, Minify and Copy still cover the whole file. It leaves your device only if you press Publish.