XML Formatter

Paste your XML to format it with indentation or minify it to a single line. If it's invalid, an error message is shown.

Runs 100% in your browser — your data is never sent to a server.

Try This Next

Finished here? These might be your next step.

Frequently Asked Questions

Just paste your text and click "Beautify". If the XML is valid, its indented form appears; if it's invalid, the browser's parsing error is shown in a red box.

Yes, all nodes in the DOM (including comments, processing instructions, and CDATA sections) are preserved and rewritten — only the indentation/whitespace changes.

Yes, as long as your browser's memory allows it — both parsing and formatting run entirely in your browser, the file is never uploaded anywhere.

Last updated: