Beautify your XML data with proper indentation and formatting for better readability.
The XML formatter reflows minified or messy XML into a clean, indented tree so the structure is obvious at a glance. It parses your input with a real XML parser (Python's minidom), which means it also checks well-formedness - unclosed tags or stray characters are reported rather than silently mangled.
Paste a SOAP envelope, an RSS feed, an Android layout or any XML document and get back a tidy two-space-indented version ready to read or copy.
Reading a minified XML config or API response, inspecting a SOAP or RSS payload, tidying an exported feed before committing it, or checking whether a document is well-formed. For converting XML into a token-efficient shape for LLM prompts, see the XML to TOON converter.
Because it parses before it prints, the formatter doubles as a quick well-formedness check: if it refuses to format, the document has a structural problem worth fixing before it reaches your code or a parser downstream.
It checks that the document is well-formed - tags must be properly closed and nested. It does not validate against a DTD or XSD schema.
Two spaces per level. The output is generated by Python's minidom pretty-printer for predictable, consistent nesting.
The input is not well-formed XML. Unclosed tags, mismatched names or invalid characters will stop the parser, which then reports the problem.
Formatting runs on our server, so your XML is sent there to be parsed and is not stored. Do not paste anything sensitive you would rather keep local.