Skip to content
AlroundTools

XML formatter

Format, validate and minify XML documents.

Runs in your browser – your files are not uploaded

How to use XML formatter

  1. 1

    Paste your XML into the input field.

  2. 2

    Choose the indentation or minify.

  3. 3

    Copy the formatted XML or download it.

About XML formatter

The XML formatter makes XML documents readable by indenting nested elements and checks that the document is well-formed.

It is useful for configuration files, feeds, sitemaps, SOAP messages and data exports. For security, documents with entity declarations are rejected.

Frequently asked questions

Does the tool validate against a schema (XSD)?

No. It checks that the XML is well-formed; schema validation is planned.

Why is XML with DOCTYPE entities rejected?

Entity declarations can be abused for attacks such as “billion laughs”. They are blocked for your safety.