XML Formatter
Pretty-print, validate, and minify XML.
Ad
Ad
Frequently Asked Questions
How does XML validation work here? +
The tool uses the browser's built-in DOMParser to parse your XML. If the XML is malformed, the parser returns an error document with a description of what went wrong and where.
Can I use tabs instead of spaces for indentation? +
Yes. The indent control lets you choose between 2 spaces, 4 spaces, or tabs. Your preference is saved for future visits.
What does minify do to XML? +
Minifying removes all unnecessary whitespace between XML tags, producing the most compact representation. This is useful for reducing file size before transmission.
Does this handle XML namespaces and CDATA sections? +
Yes. The formatter preserves namespaces, CDATA sections, comments, and processing instructions. It handles the full XML specification as supported by your browser's parser.
Ad