belun.app

XML Formatter & Validator Online

Output
 

Paste any XML into the input box, then click Format to indent and pretty-print it or Minify to strip whitespace. The tool checks that every tag is closed and nested correctly as you type, and points to the first tag that breaks — all without sending your document anywhere.

Frequently asked questions

Does it validate XML?
It checks well-formedness: every opening tag must have a matching closing tag in the right order, and stray or unclosed tags are reported with the tag name. It does not validate against a DTD or XSD schema.
Are comments and CDATA kept?
Yes. Comments (<!-- ... -->) and CDATA blocks (<![CDATA[ ... ]]>) are treated as opaque and copied through unchanged, so nothing inside them is reformatted or escaped.

Related tools