XML Formatter
Indent XML elements while preserving mixed-content text and xml:space. External entities are rejected.
Loading tool…
Your files are processed on your device and are not uploaded for processing.
How to use this tool
- Enter your values or load the example shown in the tool.
- Check the available settings, then run the tool.
- Check the result, then copy it or download the text file.
Example
<catalog><item>Tea</item></catalog> → <catalog> <item>Tea</item> </catalog>
When to use this tool
Make a compact XML configuration or feed easier to inspect.
Supported formats & limits
Up to 5 MiB of XML. DTDs and entity declarations are rejected. Formatting preserves mixed text, CDATA and xml:space; minifying only removes indentation between element children. This is syntax parsing, not XSD validation.
Something isn’t working ↗Good to know
What happens when I change the input?
An edited input needs a new result. Run the action again; previous download links are removed so you cannot mistake an old output for the current one.
What inputs and limits apply to XML Formatter?
Up to 5 MiB of XML. DTDs and entity declarations are rejected. Formatting preserves mixed text, CDATA and xml:space; minifying only removes indentation between element children. This is syntax parsing, not XSD validation.