Pretty-print or minify XML with configurable indentation. 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 formatted 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, or RSS feeds. Minifying removes all whitespace to reduce file size, which is useful for SOAP requests, embedded XML in databases, or reducing network payload in API integrations.