XML Formatter & Validator

Indent XML and check that the tags are properly nested.

Also called: XML beautifier, XML validator.

FreeNo sign-upRuns in your browser
DEVELOPER

XML Formatter & Validator

Indent XML and check that the tags are properly nested.

Runs locally in your browser
Ready. Fill in the fields above, then press Run tool.
Privacy note: this tool runs in your browser, so the text you enter stays on your device.

Find a tool

Loading tools…

Watch: how to use the XML Formatter & Validator (12 seconds)

Recorded on a phone, steps written on screen, no sound.

About the XML Formatter & Validator

Paste XML to indent it neatly and check that every tag is properly closed and nested. Errors point to the problem.

How to use the XML Formatter & Validator

  1. Enter your textType or paste XML.
  2. Press Run toolThe result appears right under the button.
  3. Copy or download the resultCopy text results with Copy output; when the tool makes a picture or file, use its Download button.

This tool works inside your browser: what you enter stays on your device.

Example

A sample input and the result the XML Formatter & Validator gives for it (produced by the tool itself, not typed by hand).

XML
<note><to>Sara</to><from>Ali</from><body>Meeting at 10</body></note>

Result:

<note>
  <to>Sara</to>
  <from>Ali</from>
  <body>Meeting at 10</body>
</note>

Good to know

What you need
You type or choose: XML
Where it runs
In your browser, on your device.
Cost
Free, no sign-up.

Questions

Does it validate against a schema (XSD)?

No, it checks that the XML is well-formed.

Can it format sitemaps?

Yes, sitemap.xml is XML.

More tools in Developer

See all Developer tools