URSY.IOPART OF THE URSY NETWORKSign in400 free tools

Developer Tools

XML Formatter

Pretty-print or minify XML with real parse errors on bad input.

Free No account Runs on this device
Developer Tools
Tool ready

Your inputs stay in this browser tab.

Powering up the tool…

TOOL XML-FORMATTE

What this tool does

About the xml formatter

Browser-parser backed: malformed XML is named, not mangled.

How to use it

  1. Paste the XML.
  2. Choose pretty or minify.
  3. Fix any named parse error.
  4. Copy the result.

Useful for

  • Make a SOAP/RSS/config payload readable.
  • Minify XML for transmission.
  • Locate the exact malformation in broken XML.

Straight answers

XML Formatter FAQ

Why so strict about errors?

XML is strict by specification — one unclosed tag invalidates the document, and consumers will reject it. Surfacing the parser’s exact complaint beats producing pretty-looking broken output.

Will it preserve my comments?

Yes — comments and CDATA-ish text survive; whitespace BETWEEN elements is normalised, which is what formatting means. Significant-whitespace documents are rare and know who they are.