How it works
- Paste XML or open a .xml file.
- Choose Format, Minify or Validate.
- Correct any parser error shown by the browser.
- Copy or download the resulting XML.
Practical example
<catalog><book id="1"><title>Tools</title></book></catalog> becomes an indented hierarchy while the id attribute and text remain unchanged.
Formula and explanation
Formatting inserts line breaks and indentation between tags so element nesting is visible. Minifying removes whitespace that only separates tags; it does not intentionally rewrite text inside elements.
The XML parser verifies matching tags, quoted attributes and a single document element. Cifrivo rejects DOCTYPE declarations as a safety measure because developer utilities rarely need external entities.
Unlike HTML, XML names and casing are significant. A <Book> opening tag cannot close with </book>. Processing uses DOMParser in this browser and no document content is transmitted.