Pretty-print XML with configurable indentation. Choose 2 spaces, 4 spaces, or tabs. Runs instantly in your browser — your data never leaves your machine.
All formatting happens in your browser using JavaScript. Nothing is uploaded to any server. Safe for SOAP messages and config files.
No waiting for a server round-trip. Results appear as you type or the moment you drop a file.
Choose 2 spaces, 4 spaces, or tabs for indentation. Toggle between pretty-print and minified output with one click.
Paste your XML into the left panel and the pretty-printed output appears instantly on the right. Use the indent selector to choose 2 spaces, 4 spaces, or tabs. Click the Minify button to strip all whitespace for compact output. You can also drag and drop an .xml file or use the upload button.
Pretty-printing XML makes it easier to read and debug — essential when working with SOAP responses, Maven POM files, Spring configuration, RSS feeds, or SVG files. Readable XML helps teams review configuration changes, trace nested element hierarchies, and quickly identify mismatched tags or missing attributes.