Online XML viewer
Open an XML file in your browser and read it as a collapsible tree with attributes and namespaces intact, copy any node as an XPath, and see exactly where a tag fails to balance — all without uploading the file.
Open the XML viewerNo signup. Nothing uploaded.
Why a viewer rather than a text editor
XML documents are usually large, usually machine-generated, and usually the thing standing between you and an integration that will not work. What you need is to find one element in a hundred thousand and know its exact path.
Ways to read a XML file
- Tree
- Elements, attributes and text nodes as a navigable tree. Attributes are distinguished from child elements rather than flattened together, and any node’s XPath can be copied in one keystroke.
- Code
- Monaco with XML highlighting, tag folding, and auto-indent that understands an unclosed tag.
- Graph
- The document structure as a diagram — useful for a schema or a deeply nested SOAP envelope, where indentation alone stops conveying shape.
What people use it for
- Debugging an API integration
- Find the element the other system is complaining about, copy its XPath, and paste it straight into your extraction code.
- Reading a feed
- RSS and Atom feeds open as a tree, and convert to JSON if that is what your code wants.
- Inspecting a config or manifest
- Android manifests, Maven POMs, .NET config files and plists all parse, with attributes clearly separated from elements.
- Checking well-formedness
- Tag balance and root-element count are checked, skipping comments, CDATA and processing instructions rather than being confused by them.
What it checks in your XML
- Parse errors located at the offending line and column
- Unbalanced or mismatched tags, ignoring comments and CDATA
- More than one root element, which is well-formedness rather than a style preference
- Attribute duplication within an element
Privacy
The file is read by your browser and parsed on your own machine. No request carries its contents — you can confirm that in your browser's network panel, or by disconnecting from the network and using the app anyway. There is no account, and nothing is stored on a server because there is no server.
File types it opens
.xml, .xsd, .xsl, .rss, .atom, .plist — and any file you paste, whatever its name. Up to 50 MB by default, adjustable to 500 MB in Settings.
Questions
How do I open an XML file online?
Open fileviewer.dev and drop a .xml file onto the page, or paste XML text. It is parsed in your browser and shown as a collapsible tree with attributes and namespaces preserved.
Can I get the XPath of an element?
Yes. Select any node in the tree and copy its path as XPath — or as dot, bracket or JSONPath notation if you are working with the converted JSON instead.
Does it check that my XML is well-formed?
Yes. Parse errors are underlined where they occur, and the viewer separately checks tag balance and that the document has exactly one root, skipping comments, CDATA sections and processing instructions.
Can I convert XML to JSON?
Yes. Attributes are folded into the same namespace as elements with an @_ prefix, which the conversion panel tells you before you run it, because it is the one thing that surprises people about XML-to-JSON.
Is my XML sent to a server?
No. The file is read and parsed by your browser. Nothing leaves your device.