Herramientas XML
XML formatter
Try it
Pretty-print XML with indentation.
Loading…
How to use this tool, examples, and related tips.
Paste your minified or poorly indented XML into the input field.
The tool parses the document and re-outputs it with consistent indentation and line breaks.
Copy the formatted XML for review, debugging, or documentation.
XML formatting — also called XML pretty-printing or XML beautifying — parses a valid XML document and re-serializes it with structured indentation and line breaks that make the element hierarchy visually clear. Minified or machine-generated XML is syntactically valid but nearly unreadable. Formatted XML preserves the document exactly while presenting it in a way that lets you scan the structure, spot errors, and understand nesting at a glance. Formatting does not alter the document's data or semantics in any way.
Debugging API responses — XML responses from SOAP services or legacy APIs are often returned as a single unbroken string. Format them to inspect the structure.
Reading config files — XML config files generated by build tools or IDEs are often minified or inconsistently indented.
Code review and documentation — Format XML before including it in documentation, tickets, or pull request descriptions.
Comparing XML documents — Consistently formatted XML is much easier to diff than raw or inconsistently indented markup.
Answers about this tool and how your data is handled.
No. Only whitespace outside of text nodes is affected. Element content, attribute values, and document structure are preserved exactly.
The tool will report a parse error. Fix the syntax issue first — use the XML validator to locate the error — then reformat.
Yes. Namespace declarations and prefixed elements are preserved and formatted correctly.
No. Formatting runs entirely in your browser. Nothing is uploaded.
Check the tool's settings — most implementations allow you to choose between 2-space, 4-space, or tab indentation.
Primero la misma categoría, luego otras utilidades.
Herramientas XML
Pretty-print XML with indentation.