XML Prettify

Your data never leaves your browser

Format and indent XML for better readability.

Brie — Bug Reporting Tool

Tracking down XML parsing issues?

Brie captures full network request/response data including headers and payloads, so you can inspect XML responses in context.

About XML Prettify

Paste minified or unformatted XML and instantly get a cleanly indented, human-readable version. Uses the browser's built-in DOMParser for validation and XMLSerializer for output, then applies consistent 2-space indentation.

How to use

  1. Paste your XML into the input panel.
  2. The formatted XML appears instantly in the output panel.
  3. Click Copy to copy the prettified XML to your clipboard.

More XML Tools

Frequently Asked Questions

FAQs about XML Prettify

What indentation does this use?

The formatter uses 2-space indentation for each nesting level.

Does it validate the XML?

Yes. Invalid XML will produce an error message. Only well-formed XML can be formatted.

Are XML declarations preserved?

Yes. The <?xml version="1.0"?> declaration is preserved in the output.

Can I format HTML with this?

This tool is designed for XML. For HTML formatting, use the HTML Prettify tool instead, as HTML has different parsing rules.

Is my data safe?

Yes. All formatting uses the browser's built-in DOMParser. No data is sent to any server.