100% PrivateBrowser Execution✦ No Limits

HTML Minifier

Shrink HTML by collapsing whitespace and removing comments. Free, no sign-up, files never leave your device.

🔒 Everything runs in your browser; nothing you paste is sent anywhere.

How it works

  1. Paste HTML or pick an .html file.
  2. Choose whether to minify inline CSS and JS.
  3. Click Minify and copy or download.

Reduce the size of HTML pages and email templates. Whitespace is collapsed and comments removed, while <pre>, <textarea>, <script> and <style> contents are preserved. Optionally minify inline <style> and <script> blocks too.

Frequently asked questions

Will it change how my page looks?

Whitespace inside <pre> and <textarea> is kept; elsewhere extra spaces don't affect rendering.

Is my code uploaded?

No. Everything runs in your browser.

Related tools