Skip to main content

XML Formatter

Paste XML and it comes out indented right away, with 2 or 4 spaces or tabs, or minified into one line. Only the whitespace between tags changes: text, CDATA and attributes stay the same. Broken XML shows the line and column, a signed NF-e gets a warning, and nothing leaves your browser.

Runs in your browser

Input XML

Or open an .xml file up to 2 MB. It is read in this tab, never uploaded.

More settings

Formatted XML

Paste XML on the left to see the result here.