<!-- Markdown version of https://ocxly.com/xml-formatter.html · auto-generated, may lag the live page -->

# XML Formatter

Pretty-print, indent and validate XML — or minify it — entirely in your browser. Your data is never uploaded.

### How it works

The XML is parsed with the browser's `DOMParser` to check it's well-formed (any syntax error is reported), then re-indented tag by tag. **Minify** strips the whitespace between tags for the smallest valid output. It only reformats — your content and attributes are untouched — and everything runs on your device.

---
*Source: [ocxly.com/xml-formatter.html](https://ocxly.com/xml-formatter.html) — OCXLY, free 100% client-side privacy-first tools. Free XML formatter and validator. Pretty-print, indent and validate XML, or minify it, entirely in your browser. Your data is never uploaded.*
