HTML Formatter and Minifier

Make tangled HTML readable, or shrink it for faster loading, without installing anything.

How to use the HTML Formatter and Minifier

  1. Add your text, file or details in the tool above.
  2. Adjust the settings to get the result you want.
  3. Copy or download your result. Nothing is uploaded.

What you can use it for

  • Clean HTML exported from builders and emails
  • Debug page source
  • Minify HTML for production

Private by design

The HTML Formatter and Minifier runs entirely in your browser. Your text and files are never uploaded or stored on a server, so it is safe for work documents and personal information. It is free, with no sign-up and no limits on how often you use it.

Frequently asked questions

Does it format inline CSS and JS?

Yes. Code inside <style> and <script> tags is formatted too.

Is my code uploaded?

No. Formatting runs in your browser.