XML Formatter

Developer Tools

Beautify or minify XML with clean indentation

FreePrivateInstant
Add a file · .txt .md .csv .json … · up to 2.00 MB

Similar tools you may like

History

All history →

XML Formatter — at a glance

Turn messy one-line XML into neatly indented, readable code, or compress XML into a single line.

Your input
<a><b>1</b></a>
Run
Result
<a>
<b>1</b>
</a>

How to use it — step by step

XML text or a single-line XML document.

1

Paste your input

Paste or type your content into the big input box. Try a sample if you want to see it work.

2

Choose options

Pick the mode and options that fit what you need.

3

Format XML

Press the button. The result is created instantly on your device.

4

Copy the result

Check the output and press Copy to use it anywhere.

Pro tips

Small things that make the result better.

✦Beautify makes XML readable; Minify makes it smaller for sending.
✦Make sure every opening tag has a matching closing tag.
✦Great for sitemaps, RSS feeds and SVG files.

Quick facts

Freeno signup, no limit
Instantresult in a moment
Privatenothing is uploaded
Any devicephone, tablet or PC

Frequently Asked Questions

Does it validate my XML?+

It tidies the layout but is not a strict validator, so check tag matching yourself.

Is my data safe?+

Yes. Everything runs inside your own browser. Your text, files and images are never uploaded to any server.

Is this tool really free?+

Yes — completely free, no signup, no watermark and no usage limit.

More Free Tools