New
XML Formatter
Runs in browserPretty-print and format XML in your browser. Paste messy XML and get readable, indented markup. Free and private.
XML Formatter tool
DOMParser is not defined
Files never leave your browser.
Drag and drop a file here, or tap to select
Formatted XML
<?xml version="1.0" encoding="UTF-8"?>
<tools>
<tool id="1">
<name>JSON Formatter</name>
<category>data</category>
<browserBased>true</browserBased>
</tool>
<tool id="2">
<name>UUID Generator</name>
<category>generators</category>
<browserBased>true</browserBased>
</tool>
</tools>How to use
Paste or upload XML
Paste XML or open an .xml file.
Review formatted output
The output updates as you type.
Copy or download
Copy the formatted XML or download it with a .xml extension.
Examples
One-line XML
Collapsed markup becomes readable.
Input<?xml version="1.0"?><root><item id="1"/></root>Output<!-- formatted with indentation -->
Frequently asked questions
- Is my XML sent to a server?
- No. Formatting runs locally in your browser.
- Does it validate XML?
- It formats well-formed XML; invalid markup may show an error.
Related tools
You might find these useful too.