XML Formatter

Pretty-print XML with clean indentation

Indent with
Formatted output
Formatted XML appears here…

Basic formatter: whitespace inside text nodes is normalized and attributes always use double quotes. Your XML is parsed in your browser with its built-in XML parser, nothing is uploaded.

About this tool

API responses and config files often arrive as a single unreadable line of XML. Reading, debugging or editing that is painful.

Paste it here for instant pretty-printing with your preferred indentation. Invalid XML gets a helpful error message pointing at the problem. Free, private, no sign-up.

How to use the xml formatter

  1. 1Paste your XML.
  2. 2Choose indent size.
  3. 3Click Format.
  4. 4Copy the readable result.

Frequently asked questions

You get a clear error message explaining the problem instead of silent failure or a crash.

More free tools you might find useful.

Part of Developer Tools on JoliTools, free tools, no sign-up.