Paste XML into the input, or load the sample.
Choose 2- or 4-space indentation, or minify it for the smallest size.
Copy the result or download it as an .xml file.
Press Validate. Malformed XML — such as an unclosed or mismatched tag — is reported with the parser’s message.
Format adds indentation so the structure is easy to read. Minify removes whitespace between tags to make the file smaller.
No. Formatting and validation happen in your browser.