HTML / CSS / JS Minifier

Minify HTML, CSS or JavaScript to shrink file size by stripping comments and unnecessary whitespace.

How to use

  1. Paste your code.
  2. Select the language.
  3. Copy the minified output and note the size saved.

Features

Frequently asked questions

Is minification safe?

This performs safe whitespace/comment removal. Always test minified code before production.

Related tools