XML Formatter
Format, minify, and validate XML documents online for free, right in your browser.
Local browser processing
No sign-up required
Preserves comments and CDATA
LanguageFor XML documents
XMLinput.xml
Indent
⌘⏎Quick format
InputEditable
1
2
3
4
5
6
7
8
OutputXML valid8 lines · 223 B
1
2
3
4
5
6
7
8
<?xml version="1.0" encoding="UTF-8"?>
<config>
<!-- Service configuration -->
<service name="format-codes" active="true">
<endpoint>https://formatcodes.com</endpoint>
<retries>3</retries>
</service>
</config>
UTF-8 · Indent: 2 spacesLocal processing · Ready
How It WorksXML
Overview
This XML formatter cleans up minified or inconsistently indented XML documents into a readable format with unified indentation, and can also minify formatted XML down to the smallest size. Tags, attributes, comments, and CDATA are all correctly preserved. Everything runs locally in your browser; your data never leaves your device.
Use Cases
Clean up XML responses minified onto a single lineFormat SOAP / RSS / Sitemap documentsUnify a team's XML indentation styleCheck whether XML tags are properly closed and paired
Steps
123
Paste or uploadChoose format or minifyGet the result