1. Home
  2. Code
  3. HTML Minifier & Beautifier

HTML Minifier & Beautifier

Format HTML or compress it in your browser. Contents of script, style, pre and textarea are left untouched.

Runs in your browser Free, no sign-up

What is preserved

Compressing removes comments and the whitespace between tags. Text inside script, style, pre and textarea is copied as-is, because collapsing it can change how the page runs or how preformatted text looks.