Paste XML and click Beautify to pretty-print it with 2-space indentation, or Minify to strip whitespace between tags. Invalid XML shows a parser error instead of output.
All tools/Formatting
XML Formatter & Validator
Beautify or minify XML, with validation errors shown. Runs entirely in your browser.
Output
How this works & FAQ
Does this validate against a schema (XSD/DTD)?
No — it checks that the XML is well-formed (properly nested and closed tags), not that it matches a specific schema.
Is my data uploaded anywhere?
No. Parsing and formatting happen locally using the browser's built-in XML parser.