Skip to content

HTML, CSS and JavaScript Minifier

Paste or drop a file and see how much it shrinks. Options ship on a safe setting; anything that can break your code is kept apart, labelled aggressive, and you turn it on knowing why. The reduction is shown in bytes and in gzip, which is the size that actually travels.

# processed in your browser. your content never leaves.

How it works

Minifying renames local variables to a single letter, strips whitespace and comments, and rewrites constructs into shorter forms. What almost no tool shows is that this can make the compressed file bigger: gzip feeds on repetition, and short but varied names repeat less than long repeated ones. That is why both numbers stay visible here — choosing between smallest file and smallest download is yours to make, and it depends on whether your server compresses.

  • Three production engines: Lightning CSS for CSS, terser for JavaScript and minify-html (Rust) for HTML
  • Reduction shown in bytes and gzip side by side — shorter names do not always mean a smaller download
  • Aggressive options isolated and explained: top-level names, property names, unsafe transforms and optional tag removal
  • Language detected automatically when you paste or drop a file, with errors pointing at line and column

Related tools

See all tools →