Developer tool
XML Formatter
Paste XML and format it with indentation so the structure is easier to read.
Tip: press Ctrl+Enter (or ⌘+Enter) to run from a text box.
Result will show here after you run the tool.
How to format XML
- Paste the XML.
- Click Format XML.
- Copy the indented result.
The browser parses the document first. If the XML is not well formed, the page reports that it could not be parsed.
Frequently asked questions
Will attributes be reordered?
The formatter adds line breaks and indentation. It does not rewrite the text inside a tag beyond the original characters.
Is the XML uploaded?
No. Parsing and formatting run in your browser.
Related developer tools
Keep working without leaving the site.
JSON Formatter
Check that JSON is valid, then pretty-print it or minify it.
Open toolHash
Create a SHA-256 checksum, or choose SHA-384, SHA-512, or SHA-1.
Open toolJWT decoder
Read a token header and payload. The signature is not verified.
Open toolCron builder
Build a five-field cron expression and read what it means.
Open toolRegex tester
See matches, positions, and capture groups.
Open toolMarkdown preview
Preview headings, lists, and links.
Open tool