XML Formatter

Indent XML and surface well-formedness errors.

Loading tool

This tool runs in your browser. Nothing is uploaded.

Paste a SOAP body or an SVG and indent it. External entities are not loaded.

How to use this tool

  1. Paste the snippet. Drop JSON, code, or a token into the input. It is not sent to a server.
  2. Run the action. Format, decode, or generate. Parse errors stay on the page.
  3. Copy the output. Copy the result back into your editor or terminal.

Safety

The parser disables network and does not resolve external entities, so XXE-style payloads cannot reach a host from this page.

Frequently asked

Does it validate against an XSD?

No. It checks well-formed XML, not a schema.

Can I format HTML?

HTML is often not well-formed XML. Use this only for XHTML or true XML.

Are CDATA sections kept?

Yes, when the input is well-formed.

Will namespaces be rewritten?

Prefixes are preserved. The formatter does not invent new ones.

Is the document uploaded?

No.