XML Formatter & Validator

Check that an XML document is well-formed, with the line, column and reason when it is not, then pretty-print it with two spaces, four spaces or tabs, or minify it. Text, CDATA sections, comments, processing instructions and xml:space="preserve" content are kept as written; no entity is expanded and nothing is fetched. Runs in your browser.

Encoding & data

Kept in this browser · My desk

Checked and formatted in your browser: nothing is sent anywhere, no entity is expanded and no DTD is fetched.

Mode
API endpointGEThttps://ronutz.com/api/v1/xml-formatterDocumented, not served. Opens the specification.

Appears in these workflows