XML Formatter & Validator
Format XML into readable, indented output and check its syntax.
FORMATTED OUTPUT
Your formatted XML will appear here.
Ready. Paste XML or load an example to begin.
How to use the XML formatter
Paste XML, choose an indentation size, and select Format XML. Use Validate to check whether the document is well-formed. Copy or download the result when you're done.
- Preserves element names, attributes and text values.
- Reports parsing errors without discarding your original input.
- DOCTYPE and entity declarations are intentionally rejected.