XML Formatter — Pretty-Print & Minify

Paste XML → readable indentation, or strip whitespace → compact one-liner; parse errors reported honestly.

Quick answer: Free XML formatter: indent messy XML for reading, or minify it for transport — instant, local, error-honest.

How to use

  1. Paste XML.
  2. Beautify (or minify).
  3. Copy output; errors are explained.

About this tool

Config files, sitemaps, SOAP responses — XML is everywhere and rarely pretty. This formatter indents tags consistently, preserves text content, and when your XML is broken it says so instead of pretending.

FAQ

Is my XML valid?
The tool parses first — broken XML gives an honest error message, not garbage output.
Attributes handled?
Yes — attributes stay on their tags; indentation is element-level.
Namespaces/CDATA?
Preserved as-is.
Minify use?
Smaller payloads for transport — keep the pretty copy for humans.
Size limit?
Large files fine — all local.
JSON instead?
Use the JSON formatter tool.