XML Validator
Validate XML syntax and pinpoint errors with clear location hints.
Format and minify XML for readability and validation.
XML Formatter reformats compact or poorly indented XML into a clean, readable structure. It can also minify XML by removing whitespace and line breaks, and validates syntax in the process. Useful for inspecting configuration files, API responses, and SOAP messages.
Yes. Any XML declaration in the input is kept at the top of the formatted output.
A parse error message is displayed. Check for issues such as unclosed tags.
With "Self-close empty elements" enabled, empty elements use the <tag /> form; otherwise they use <tag></tag>.
No. All processing happens in your browser using the built-in DOMParser.