Skip to the tool

XML Formatter & Validator

Format, validate and minify XML. Errors show line and column. Pick 2 spaces, 4 or tabs.

How It Works

1

Paste your XML

Paste a document, a sitemap, an RSS feed, a SOAP message or an SVG. It is checked as you type.

2

Check the result

A valid document shows its element, attribute and depth counts. An invalid one shows the error with its line and column.

3

Format or minify

Format re-indents the document with 2 spaces, 4 spaces or tabs. Minify strips the whitespace between tags. Then copy.

FAQ

Built & Maintained by Varstatt

Varstatt is a one-person product studio run by Jurij Tokarski, product engineer since 2011. These tools are free and open — no signup, no catch.