XML Formatter & Validator

Pretty print and validate XML for sitemaps, RSS feeds, SOAP and config files, with clear well formedness errors. Parsed safely, never executed.

Runs on your device

Result

Results appear here as you type.

What it does

XML is parsed with the browser’s built in parser, which does not fetch external entities, so XXE attacks are not possible here.

How to use it

  1. Paste XML.
  2. Choose indentation.
  3. Copy or download the formatted result.

Example

The example fills in realistic values and runs the tool. Select Try an example above to see it.

When it helps

  • Reading sitemaps and feeds.
  • Debugging SOAP and payment gateway responses.
  • Cleaning Android and Maven config.

Questions

Does it validate against a schema (XSD)?

No. It checks well formedness: matching tags, quoting and escaping.

Are comments kept?

Yes, along with CDATA sections.

More developer tools

See all 25

People also use

Browse all 200 tools