About the XML Formatter & Validator
XML is used for sitemaps, RSS feeds, SOAP APIs, Android layouts, office documents and countless configuration files. The XML Formatter & Validator makes XML readable by placing each element on its own line with consistent indentation, while keeping short text values on the same line as their tags.
Before formatting, the XML is checked by your browser's built-in XML parser. If the document is not well-formed, for example because of a missing closing tag, an unescaped ampersand or mismatched quotes, you get the parser's error message so you can fix it. You can also minify XML to reduce its size by removing whitespace between tags and comments.
How to use the XML Formatter & Validator
- Paste your XML.
- Click Format to beautify or Minify to compress.
- Read the validation message and fix errors if needed.
- Copy or download the result.
Frequently asked questions
What does "well-formed" mean?
Every tag is properly closed and nested, attribute values are quoted and special characters like & are escaped. Well-formed does not mean valid against a schema.
Does it validate against an XSD schema?
No. It checks well-formedness only, which catches most syntax errors.
