ToolVaults

XML Formatter, Validator & Minifier

Format XML with proper indentation, validate against the XML spec, or minify to a single line. Uses the browser DOMParser for validation.

Runs 100% in your browser — nothing is uploaded.

Result

Frequently asked

What XML parser does this use?

The browser's built-in DOMParser (application/xml mode). Same code path used by fetch() and XHR when handling XML responses.

Does it handle namespaces?

Yes — namespaces are preserved as-is. The formatter does not rewrite them.

What about XML entities?

Standard entities (< > & " ') work. Custom DTDs are supported for parsing but not fully preserved on output.

Related tools