Format and validate XML
XML still powers RSS and Atom feeds, SVG, SOAP APIs, Android layouts and countless config files. Minified or badly-indented XML is hard to read; this tool re-indents it cleanly and flags any nesting or syntax errors so you can fix them fast.
How to use it
- Paste your XML.
- Choose an indent size.
- Click Format to beautify, or Minify to compact. Errors appear inline.
Frequently asked questions
Does it validate my XML? Yes — before formatting, the XML is checked with the browser’s native parser and any well-formedness error is shown with details.
Can it minify XML too? Yes — the Minify button strips the whitespace between tags to produce a compact single line.
Does it check against a schema (XSD/DTD)? No — it checks that the XML is well-formed (correct nesting and syntax), not that it conforms to a specific schema.
Is my XML uploaded? No. Formatting and validation happen entirely in your browser.
