XML Formatter
Format and indent XML for readability, or minify it, right in your browser. Handles attributes and nested nodes.
How it works
- 1
Paste your input
Type or paste your data into XML Formatter.
- 2
Adjust options
Tweak the available settings — the output updates as you type.
- 3
Copy the result
Copy the output to your clipboard or download it as a file.
Common uses
- Pretty-print a dense XML feed so you can read it.
- Re-indent a config or SVG to a consistent style.
- Minify XML before shipping it in a response.
About the XML Formatter
Format and indent XML for readability, or minify it, right in your browser. Handles attributes and nested nodes.
XML Formatter is part of a free, privacy-first toolkit. Everything is computed instantly on the client, so your data never leaves the page — useful when you're working with sensitive payloads.
Because xml formatter works without any sign-up or installation, you can use it as often as you like and it's always available — on desktop or mobile, and even offline.
Explore more developer tools, or try JSON Formatter · JSON Validator.
Related tools
XML Formatter — FAQ
Yes. Switch between Beautify and Minify, and choose the indentation for beautified output.