# 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. ## Related tools - [Base64 Encoder / Decoder](base64.html) — OCXLY Tools - [HTML Entity Encoder / Decoder](html-entity.html) — Escape & Unescape - [MIME Type Finder](mime-type-finder.html) — Extension to MIME Lookup --- *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.*