XML Formatter & Validator
Turn a one-line XML file into an indented tree, or the reverse. The browser’s XML parser checks well-formedness and reports the first error it finds.
Runs entirely in your browser. Your input and files are not uploaded to any server.
How to use
- Paste XML.
- Choose Format or Minify and the indentation.
- Copy or download the result.
Examples
Check a sitemap.xml copied from a server and make it readable.
Privacy
Runs entirely in your browser. Your input and files are not uploaded to any server. See the privacy policy for what is stored in your browser (favorites and history only). Privacy policy
Check it yourself: open your browser’s developer tools, select the Network tab and use the tool. Your file never appears in an upload request. Once this page is saved for offline use, you can also disconnect from the internet and keep working. Ads and anonymous visit statistics, when enabled, make their own requests, but they never receive your files or text.
Frequently asked questions
Does it validate against a schema (XSD)?
No. It checks that the XML is well-formed (tags are balanced, attributes quoted, one root element). Schema validation needs the schema file and a dedicated validator.
Are comments and CDATA kept?
Yes, both are preserved in format and minify mode.