Skip to content
Controlled server processing

Free Online XML Formatter

Indent valid XML. External entities and document type declarations are rejected; mixed-content whitespace can be normalized. This tool processes bounded inputs on this server without retaining submitted content.

Inputs are sent to this server. Uploads are processed temporarily and not retained. Network diagnostics may query public resolvers or the destination website.

Result

How to use XML Formatter

Indent valid XML. External entities and document type declarations are rejected; mixed-content whitespace can be normalized. This tool processes bounded inputs on this server without retaining submitted content.

  1. Set Text.
  2. Run the tool, review the result and its stated limitations, then copy or download if needed.

Example & practical use

Indent valid XML. External entities and document type declarations are rejected; mixed-content whitespace can be normalized. This tool processes bounded inputs on this server without retaining submitted content. The example below demonstrates Text.

Example input:
{
  "text": "<root><a>1</a></root>"
}
Expected result (relevant fields):
{
  "root": "root"
}

Features & result limitations

Indent valid XML. External entities and document type declarations are rejected; mixed-content whitespace can be normalized. This tool processes bounded inputs on this server without retaining submitted content.

Frequently asked questions

What inputs does XML Formatter accept?

Text

How should I interpret the XML Formatter result?

Indent valid XML. External entities and document type declarations are rejected; mixed-content whitespace can be normalized. This tool processes bounded inputs on this server without retaining submitted content.

Where does XML Formatter process my data?

Inputs are processed on this server. Uploads use temporary files removed at request end. Public diagnostics contact the named resolvers or website. Private text is not stored in usage counters.