Tools
Runs locally

HTML Formatter

Format or minify HTML.

Ctrl+Enter runs. Ctrl+Shift+Backspace clears.

Export and import are available after you sign in. Sign in

Formatting uses Prettier. Minifying uses a dedicated HTML minifier. The result is text, not a live page.

About this tool

Clean up HTML copied from a CMS, an email template or a browser inspector, or shrink a page for production. Formatting uses Prettier and minifying uses a dedicated HTML minifier.

How to use it

  1. 01

    Paste the HTML.

  2. 02

    Choose format or minify.

  3. 03

    Copy the result.

FAQ

Frequently asked questions

Is the HTML executed?

No. The result is shown as text only, so scripts in the markup never run.

Which formatter is used?

Prettier, the same formatter many teams use in their editors and CI.