XML Formatter

Pretty-print XML with the indent you choose, or minify it back to one line — with a well-formedness check first.

Your XML

Paste XML to tidy up the layout, or turn it into a single line. It is checked for well-formedness first.

Nothing formatted yet

Paste XML above, then press “Format XML”.

This only changes the layout: tags, attributes, comments and CDATA are kept as they were. Minify removes the whitespace between tags, which can matter for elements that mix text and child tags.

Runs entirely in your browser. Nothing is uploaded.

How it works

This utility runs locally in your browser for privacy and speed.

1 ⚡

Unlimited local tools

This run costs 1 credit(s) and is saved to your history automatically.

Log in to save and view your usage history.

My usage history

No runs recorded yet.

Frequently asked questions

Do I get free credits to try XML Formatter?
Yes — new accounts get 3 free credits to spend on any tool, XML Formatter included. After that you only pay for what you run.
How many credits does XML Formatter cost?
Everything runs in your browser and nothing is uploaded: free accounts pay 1 credit per run, and Pro or Pro+ members run it as often as they like.
Is the content I paste private?
XML Formatter uses your input only to generate the result. Stored results are deleted automatically by our retention policy, and you can remove any run from your history.
Do I need to install anything?
No. XML Formatter works in any modern browser — nothing to download or install.

Related tools

Tools people usually need next, in the same workflow.