XML Formatter

Pretty-prints XML with two-space indentation so nesting is easy to read. Elements holding only text stay on a single line, comments, CDATA sections, and the XML declaration are preserved, and malformed markup is reported with the tag that caused it. Runs entirely in your browser — nothing is sent to a server.

Ad placeholder: Resp_Horizantal_1 (horizontal)
Ad placeholder: Resp_Square_1 (square)

Pretty-prints XML with two-space indentation so nesting is easy to read. Elements holding only text stay on a single line, comments, CDATA sections, and the XML declaration are preserved, and malformed markup is reported with the tag that caused it. Runs entirely in your browser — nothing is sent to a server.

Use cases

  • Making a minified API response or SOAP envelope readable
  • Spotting an unclosed or mismatched tag in a config file

Examples

Minified XML

<note><to>Ada</to><from>Linus</from></note>
<note>
  <to>Ada</to>
  <from>Linus</from>
</note>

FAQ

Is my data sent to a server?

No — this tool runs entirely in your browser.

Does formatting change my content?

No. Only whitespace between tags is re-flowed. Text, attributes, and CDATA sections are left exactly as written.