Tools Guides
developer Free No signup

HTML / CSS / JS Minifier

Minify HTML, CSS, and JavaScript to reduce file size — runs entirely in your browser.

Loading tool…

About this tool

Reduce the size of your HTML, CSS, and JavaScript files for faster page loads. Switch between three tabs, paste your code, and see the minified output instantly along with the original size, minified size, and percentage reduction. HTML minification strips comments and collapses whitespace; CSS removes comments and whitespace; JS strips line and block comments and collapses whitespace.

How to use

  1. 1 Select the HTML, CSS, or JS tab.
  2. 2 Paste your source code into the input.
  3. 3 The minified output and size reduction appear automatically.
  4. 4 Click 'Copy Output' to copy the minified code.

Frequently Asked Questions

{# Alpine.js — self-hosted. (The previous jsdelivr CDN tag had a stale SRI integrity hash, so the browser refused to run it and window.Alpine was never defined — silently breaking every FAQ accordion and Alpine tool.) #}