XML Formatter
Pretty-print or minify XML in your browser.
Embed this tool
Copy the iframe code below to add this tool to your site. The embed loads XML Formatter without ads.
Embed code copied to clipboard.
Tool workspace
Pretty-print or minify XML in your browser. Nothing is uploaded. Server Domain parsing disables network entity resolution.
How it works
Empty input clears the result—no error. Invalid XML shows a parse error. Domain unit tests parse with LIBXML_NONET (no network entity resolution).
Examples
- <root><a>1</a></root> → indented XML
Privacy
FAQ
Is my XML uploaded?
No. Formatting runs entirely in your browser.
Do I need an account?
No. All published tools work for guests without login.