Skip to content

XML Formatter

Beautify, minify and validate XML

XML input

Paste XML, SVG, RSS…

Formatted XML

Output appears here

How to use

  1. Paste or upload XML. It is validated and formatted as you type.
  2. Switch between Pretty and Minified output and pick the indentation.
  3. Click Format to replace the input, or copy and download the result.

About XML formatting

Machine-generated XML often arrives as one long line. Pretty-printing puts each element on its own line with indentation that mirrors the document tree, which makes SOAP responses, configuration files and feeds readable. Minifying does the reverse for transport.

Frequently asked questions

With the browser's built-in XML parser, which checks that the document is well-formed: every tag is closed, tags are properly nested, attributes are quoted and special characters are escaped. Schema (XSD/DTD) validation is not performed.