XML / HTML Prettifier

Beautify or minify XML and HTML locally. Switch modes, pick indent size, and download — nothing is uploaded.

Processing happens locally — your markup is never uploaded.

About XML/HTML Prettifier

Clean up messy XML or HTML with proper indentation and structure, or minify it for production. Validate markup and switch between modes to fit your workflow.

Features

  • Beautify XML and HTML with consistent indentation
  • Switch between XML and HTML modes
  • Minify markup to reduce size
  • Download or copy the result instantly

How to use

  1. 1Paste your XML or HTML into the editor.
  2. 2Choose the mode and indentation size.
  3. 3Copy or download the formatted markup.

Frequently Asked Questions

Does it handle both XML and HTML?
Yes. Switch modes to format either XML documents or HTML markup.
Is my markup private?
Yes. Formatting runs locally in your browser, so nothing is uploaded.
Can I minify as well as beautify?
Yes. Minify mode removes whitespace to produce compact output for production.

Related Formatters

Explore other tools