XML Formatter

Format and minify XML with pretty print.

Developer

About XML Formatter

Paste XML and format it with consistent indentation for readability, or minify it to a single line. Invalid XML will show a parse error. All processing runs in your browser.

Frequently Asked Questions

Is my XML sent to a server?
No. Formatting and minification run entirely in your browser.
What if my XML is invalid?
The parser will show an error message. Fix the syntax (e.g. unclosed tags, invalid characters) and try again.
Does it support XML with namespaces?
Yes. The browser's parser handles namespaces. Formatted output preserves them.