Util / Formatting
/XML Formatter & Validator
0 requests sent since load
Input
transform
output
indent
Output
About the XML formatter
Parsing uses the browser's native DOMParser withapplication/xml MIME type, so validation errors are exact and standards-compliant. Formatting is a recursive serializer that preserves attributes, comments, and processing instructions while normalising whitespace. Minify strips all inter-element whitespace using XMLSerializer.
FAQ
Is my XML sent anywhere?
No. Parsing and formatting happen entirely in your browser — nothing leaves this tab.
Does it support namespaces?
Yes — the browser's DOMParser handles namespaced XML correctly, and the serializer preserves namespace declarations.