XML Formatter
Neatly indented XML, or a compact one-line version, with an error if the XML is broken.
…
How to do it
- 1Add the text
Paste or type the text or amount here.
- 2See the result
The result appears right away as you type.
- 3Copy it
Copy the result and use it anywhere. Your text goes nowhere.
About this tool
Paste XML to see it indented so it is easy to read, or choose Minify to remove the spaces between tags. The tool also checks that the XML is well formed and reports an error when a tag is not closed correctly. Choose two spaces, four spaces or a tab for indentation.
Frequently asked questions
Does it validate against a schema?
No. It only checks that the XML is well formed, not that it follows a particular schema.
Is my XML sent anywhere?
No. The formatting is done in your browser.