No repeating records here - this XML is one of a kind. Try the Tree view instead.
Open any XML file as a collapsible tree, highlighted code or a table - with exact error lines, XPath search and one-click formatting. Convert XML to JSON for the JSON Viewer, preview graphics in the SVG Viewer, open Apple .plist files in the Plist Viewer, or browse all file viewers.
Something went wrong. Please try again.
Still having trouble? Please contact us and we'll be happy to help!
No repeating records here - this XML is one of a kind. Try the Tree view instead.
Shortcuts: Ctrl + F search, Enter / Shift + Enter next and previous match, Ctrl + S download, Ctrl + O open, arrow keys move through the tree.
You can also paste XML anywhere on the page with Ctrl + V.
Fold and unfold any element. Click one to see its path and copy its XPath or the element itself.
Formatted and raw views with line numbers, word wrap and five color themes - Light, VS Code, GitHub, Monokai and Dracula.
Repeating records like products, feed items or sitemap URLs become rows and columns you can sort and export to CSV.
Run XPath queries with highlighted results, or search text and regular expressions in every view.
Well-formedness is checked as the file opens. Errors show the line, the column and a hint for the fix.
Convert the whole document to JSON or YAML, or a table of records to CSV for Excel and Google Sheets.
Open several files at once, compare two side by side, and download them all as a ZIP.
Everything happens in your browser. Nothing is uploaded and outside files are never fetched.
Some XML formats get an extra summary tab on top of the tree and code views.
document.xml and the strings of an Excel sharedStrings.xml. For the whole file, use the DOCX Viewer or Excel Viewer.Most broken XML comes from a handful of small mistakes.
The viewer points to the exact line and column, and explains which one it is.
| Error | Broken | Fixed |
|---|---|---|
| Bare ampersand | ?a=1&b=2 | ?a=1&b=2 |
| Mismatched tags | <b><i>x</b></i> | <b><i>x</i></b> |
| Unquoted attribute | <a id=5> | <a id="5"> |
| Two root elements | <a/><b/> | <r><a/><b/></r> |
Space before <?xml | ␣<?xml ...?> | <?xml ...?> on line 1 |
| HTML entity | |   |
Raw < in text | a < b | a < b |
Files that are really another format open better elsewhere: try the HTML Viewer, JSON Viewer or Text Viewer.
XML (eXtensible Markup Language) is a text format for storing and moving structured data.
It is readable by people and machines, which is why it powers config files, web services (SOAP, WSDL), document formats and feeds.
An .xml file is plain text, so any editor opens it. Without highlighting, a tree and error checking, though, a big file is hard to read - that is what this viewer adds.
Many formats are built on XML: XSD schemas, XSL/XSLT stylesheets, SVG graphics, RSS and Atom feeds, plist, WSDL, GPX and KML. Microsoft Office files are ZIP packages full of XML - peek inside with the ZIP File Viewer.
Working with other formats? Use the YAML Viewer for configuration, the CSS Viewer and JS Viewer for code, or the CSV Viewer for exported tables.
Drop the .xml file onto this page or paste its text. It opens instantly as a collapsible tree and as formatted, color-coded code.
It works on Windows, Mac, Chromebooks, phones and work PCs where you can’t install anything.
Yes. The file is read and parsed in your browser and never uploaded.
External DTDs and entities are never fetched, and entity bombs are stopped before they can freeze your tab.
The viewer checks that the document is well-formed: every tag is closed in the right order, attributes are quoted, & and < are escaped and there is one root element.
If something is wrong you get the line, the column and a hint for the fix. It does not validate against an XSD or DTD schema.
Yes. Press JSON to download the document as JSON - attributes become @keys, text becomes #text when needed and repeated elements become arrays.
You can also export YAML, or CSV from the Table view, and open the result in the JSON Viewer.
Beautify re-indents the XML with 2 spaces, 4 spaces or tabs so it is easy to read. Minify removes the whitespace between tags to make the file smaller.
Text inside elements, CDATA and xml:space="preserve" sections are kept exactly.
Any XML-based file: .xml, .xsd, .xsl and .xslt, .svg, .rss, .atom, .plist, .wsdl, .gpx, .kml, .config, .xaml, .resx and more.
Sitemaps, RSS and Atom feeds, SVG, plist, KML and GPX files and Word or Excel XML parts also get a special summary view.
Yes, up to 50 MB. Parsing runs in a background worker so the page stays responsive, and the tree and code views only draw the rows on your screen.
Open the Tree view, type an expression like //item/title or //book[@id="bk102"] in the XPath box and press Run.
Matching nodes are highlighted in the tree, and clicking any element shows its XPath so you can copy it.