How to Use
- Paste XML into the input (or upload a .xml/.svg/.rss/.plist file) and pick an indent style.
- Click Format to beautify, Minify to compress, or Validate to check syntax with precise line/column errors.
- Copy the output or download it as a .xml file — everything stays on your device.
XML syntax quick reference
| Construct | Syntax | Notes |
|---|---|---|
| Declaration | Must be the very first line | |
| Element | Every open tag needs a close | |
| Self-closing | No content allowed inside | |
| Attribute | Values must be quoted | |
| Comment | Cannot contain -- inside | |
| CDATA | & text]]> | Not parsed — keep verbatim |
| Entity: < & > & " ' | < > & " ' | Escape inside text & attributes |
Frequently Asked Questions
Does my XML get uploaded anywhere?
No — parsing, formatting and validation all run in your browser via the native DOMParser. Nothing leaves your device, so it's safe for configs and sensitive data.
How precise is the error reporting?
Validation uses DOMParser with the XML parser — on failure the banner shows the browser's exact error message plus the line and column it reports.
Will minify break my CDATA sections?
No — CDATA blocks, comments and inline text-only elements are preserved; only whitespace between tags is collapsed.
Can I format SVG, RSS or plist files?
Yes — any well-formed XML works: upload .xml, .svg, .rss or .plist files, or paste the content directly.