Skip to content
Free Tab Toolsnothing uploaded

Runs in your browser · Last updated 4 September 2026

XML Formatter Online

Pretty-print and validate XML in the browser. Indent, collapse, and copy — no file upload.

<catalog>
  <book id="1">
    <title>
      Dune
    </title>
    <tags>
      <tag>
        sf
      </tag>
      <tag>
        desert
      </tag>
    </tags>
  </book>
</catalog>

How to use this tool

  1. Paste minified or messy XML.
  2. Copy the indented result.
  3. Convert to JSON if you need a spreadsheet next.

Why a formatter is not a converter

Searchers who type “xml formatter online” want readable markup. Searchers who type “xml to json” want an object. Shipping both jobs on one URL makes both pages worse. These two tools share an engine and link to each other.

Frequently asked questions

Does this validate against an XSD?
No. It checks that we can parse tags well enough to indent them. Schema validation is a later tool.
Will comments survive?
The converter strips comments. The formatter keeps markup structure and text nodes.
Is this an XML to JSON converter?
No. That is a separate page so each URL can target its query.
Do you upload the file?
No.
What indent do you use?
Two spaces.