XML Viewer, Formatter & Parser
Free online XML viewer, parser and formatter. Validate, pretty-print, minify, and explore XML in a collapsible tree — 100% in your browser.
Paste your input, drop a file, or
About this tool
Paste or upload XML to validate, pretty-print, minify, or browse it as a tree. Powered by fast-xml-parser. Everything runs in your browser.
About XML Viewer, Formatter & Parser
Paste XML to check that it is well-formed, then pretty-print it with proper indentation or minify it down to a single line. The collapsible tree lets you expand elements one level at a time so large documents stay readable. When the markup is invalid, the tool reports the parse error so you can find the unclosed tag or stray character.
Parsing happens in your browser with no server round trip, so API responses, RSS feeds, and SOAP payloads remain private. It is a quick way to inspect a config file or sitemap without loading it into a full XML editor.
Frequently asked questions
- What is the difference between formatting and minifying?
- Formatting adds indentation and line breaks for reading; minifying removes that whitespace to make the file smaller.
- Does it validate against a schema or DTD?
- No. It checks that the XML is well-formed, but it does not validate against an XSD or DTD.
- Can it handle XML with namespaces?
- Yes. Namespaced elements and attributes are preserved when the document is formatted or minified.