Code
Pretty-print or minify XML in your browser with no upload.
Runs entirely in your browser
Nothing you paste is uploaded. Monaco and Prettier load on demand from this origin.
XML
Formatted
Run the formatter to see output here.
There is no upload endpoint — your files are processed in this browser tab. Open your network tab and check. See how it stays private.
How to XML formatter
- Paste XML. Paste the XML you want to format or minify.
- Choose an action. Indent it for reading or strip whitespace to shrink it.
- Copy. Copy the result back into your project.
XML from APIs and exports often arrives as one unreadable line. Pretty-printing reveals the structure so you can navigate it, and minifying does the opposite when you need a compact payload.
For JSON and YAML use their dedicated formatters; to convert between data formats use the data converter.
Frequently asked questions
Does it check that my XML is valid?
It checks that the XML is well-formed (correctly nested and closed tags). Validation against a specific schema (XSD) is separate from well-formedness.
Can it handle large XML files?
It parses and reformats in the browser, so size is bounded by your device's memory rather than a server limit.
Is my XML uploaded?
No. Formatting happens locally, so the document stays in the tab.
Related tools
- YAML formatterFormat and validate YAML locally with helpful parse errors.
- JSON toolkitFormat, validate, minify, and explore JSON in a collapsible tree — all in your browser.
- JSON / YAML / TOMLConvert between JSON, YAML, and TOML data formats on your device.
- Format & minifyPrettify or minify HTML, CSS, JavaScript, TypeScript, and JSON entirely in your browser.