Developer Tools
XML Formatter
Pretty-print XML with two or four spaces, or a tab character. Paste minified or messy XML, pick an indent and click Format. The formatter runs entirely in your browser — no parser library, no network call.
Your input is processed locally in your browser. It is not uploaded to Dueneo.
Loading XML Formatter…
How to use
- 1
Paste your XML
Drop a single-line API response, an SVG with no breaks, or a messy document into the left editor.
- 2
Pick an indent style
Choose 2 spaces, 4 spaces or a tab character to match your project's convention.
- 3
Format the XML
Click Format XML. Tags, attributes, comments, CDATA blocks and processing instructions are all preserved.
- 4
Copy or save
Use Copy for the clipboard or Save to download formatted.xml to your device.
Common use cases
- Make a minified SOAP or REST response readable before debugging.
- Tidy an SVG exported by a design tool so the source is reviewable.
- Indent a Maven, Ant or Spring XML configuration file before commit.
- Prepare an RSS or Atom feed snippet for documentation.
Limitations
- This is a token-based pretty-printer, not a validating XML parser. Malformed input may still produce output.
- DTD entities, namespaces and schema references are passed through untouched.
- Inputs larger than 1 MB are rejected to keep the page responsive.