PDFPowerHub

HTML/CSS/JS Minifier

beta

This free minifier strips comments and unnecessary whitespace from HTML, and fully minifies CSS (with csso) and JavaScript (with terser) to shrink file size. Everything runs on your device, so your code is never uploaded.

Minify HTML, CSS or JavaScript to shrink file size — runs entirely in your browser, nothing is uploaded.

Source

How to use HTML/CSS/JS Minifier

  1. 1 Pick HTML, CSS or JavaScript.
  2. 2 Paste your source code into the box.
  3. 3 Click Minify to compress it.
  4. 4 See how many bytes you saved, then copy or download the result.

Frequently asked questions

Is my code uploaded to a server?

No. Minification runs entirely in your browser, so your code stays on your device.

What libraries power it?

CSS is minified with csso and JavaScript with terser (both running in your browser). HTML uses a safe whitespace/comment collapser that preserves the contents of pre, textarea, script and style.

Will minifying break my JavaScript?

terser is a robust, widely used minifier, but always test the output. Invalid input syntax will produce an error rather than broken code.

Does it work offline?

Yes — as a PWA it keeps working without a connection once loaded.