XML

XML Formatter

Format and indent XML, check it is well-formed and flag errors. Processed entirely in the browser.

Live·100% in your browser — no upload

      

What is XML Formatter

The XML Formatter indents and tidies XML code to make it readable, and first checks that it is well-formed: if there are unclosed tags or invalid characters it flags them. You can also minify it to reduce its size.

The check uses the browser's XML parser and runs locally: no data is sent anywhere.

How it works

  1. Paste the XML into the input box.
  2. Press Format to indent it or Minify to compact it.
  3. If the XML is not well-formed, the error tells you what is wrong.
  4. Copy the result from the box on the right.

Frequently Asked Questions

What does 'well-formed' mean?
A well-formed XML has all tags opened and closed correctly and follows the syntax rules. The tool checks this before formatting.
What does minify do?
It removes whitespace and line breaks between tags to reduce file size while keeping the same content.
Is the XML uploaded online?
No. Validation and formatting happen in the browser: your XML never leaves your device.

Related tools