Indent an XML document and, while it is at it, check that it is well formed: an unclosed tag or an illegal character is reported before anything is touched.
Useful for RSS feeds, sitemaps, configuration files and any API response that arrives as XML on one unreadable line.
How to use it
- Paste the XML.
- Choose the indentation.
- Copy the result.
Frequently asked questions
- What does “not valid” mean here?
- That it is not well formed: an unclosed tag, a bare “&” that should be “&”, or two root elements. The message says what was expected.
- Does it validate against a schema?
- No. It checks the structure, not whether it satisfies an XSD or DTD, which is a much stricter check.
- Are comments and CDATA sections kept?
- Yes, they are in the result. What may change is the indentation of what is inside them.
Related tools
Minify CSSCSSO: it restructures and merges rules, not just strips spaces.
Minify JavaScriptTerser in the browser, with optional name mangling.
Count words and charactersA live count, reading time and the limits each platform imposes.
Change letter caseUPPERCASE, lowercase, Title Case, camelCase, snake_case and more.
Sort and clean up linesSort, drop duplicates and blanks, number or reverse a list.