Data tool
XML Formatter
Paste XML or drop a file to validate, pretty-print, minify, copy, and download clean XML directly in your browser.
Runs Locally
This tool runs in your browser. Files never leave your device.
Drop XML anywhere in this card or paste source below.
Drag and drop XML, XSD, RSS, Atom, SVG, or TXT files here.
Formatter output
0 elements · 0 attributes · 0 text nodes · 377 B
Valid XML
Choose formatted or minified output, then copy or download it.
<?xml version="1.0" encoding="UTF-8"?>
<catalog>
<tool id="xml-formatter">
<name>
XML Formatter
</name>
<category>
Data Tools
</category>
<features>
<feature>
Format XML
</feature>
<feature>
Minify XML
</feature>
<feature>
Validate XML
</feature>
</features>
</tool>
</catalog>What this tool does
XML Formatter rewrites compact or messy XML with proper indentation and line breaks, turning a single block of markup into a clean, readable structure. It is the fast way to make a feed, config, or export legible before you read or edit it.
How it works
Paste your XML and the formatter parses it in your browser and returns a neatly indented version you can copy. The content stays the same; only the spacing changes. Nothing is uploaded.
When to use XML Formatter
Making a minified XML feed readable
Tidying a config before you edit it
Reformatting an export pasted from a tool
Cleaning up machine-generated markup