XML Formatter
Format (pretty-print) or minify XML with clear error messages.
Related tools
How it works
- 1
Paste your XML
Raw or minified XML.
- 2
Pick Format or Minify
Indented for reading, or compact for storage.
- 3
Copy the result
Or see a clear error if the XML is invalid.
FAQ
- Does this validate that my XML is well-formed?
- Yes - invalid XML shows a clear parse error instead of a broken result.
- Does this tool send my XML to a server?
- No - formatting runs entirely in your browser.