What this xml formatter does
Paste XML and format it with readable indentation. The browser XML parser also reports malformed markup before a formatted result is produced.
XML text, including declarations, elements, attributes and text nodes.
Indented XML text or a parse error when the document is malformed.
Example
Format a dense sitemap or configuration fragment so nested elements and attributes are easier to review.
Privacy
Processed locally in your browser — your working input is not uploaded by this tool. The current implementation uses browser APIs for processing. If Tools Brave later adds a server-powered version of this utility, the page will disclose that change before processing begins.
Limitations to know
- This is an XML syntax formatter, not an XSD or DTD conformance validator.
- Whitespace inside mixed-content XML can be meaningful, so inspect formatted output before replacing production files.
- Very large XML documents may be slower to parse in the browser.