XML Formatter / Validator

Format, minify and check XML structure in your browser.

Indent
Paste or type XML to format, minify or validate.

Your XML is formatted, minified and validated in your browser. Nothing is uploaded to BroBroGo.

FAQ

What's the difference between format and minify?

Format reindents XML so the tags and nesting are easy to read. Minify removes line breaks and indentation between nodes so the XML is smaller. Use format while editing and minify when you need compact output.

What does validation check?

It checks whether the XML is well-formed: one document structure, matching tags, quoted attributes and legal markup. It does not validate against an XSD, DTD or business schema.

Can formatting change meaningful whitespace?

It keeps elements and attributes, but whitespace can matter inside some XML. If your file uses mixed content or whitespace-sensitive text, review the result before replacing the original.