HTML / CSS / JS Minifier

Shrink CSS, JavaScript and HTML by removing comments, whitespace and unnecessary characters.

Runs in your browser. Nothing is uploaded Free, no sign-up Works on mobile
Language

How to use HTML / CSS / JS Minifier

  1. Choose CSS, JavaScript or HTML.
  2. Paste your code.
  3. Copy the minified output.

Frequently asked questions

Is minification safe?

Yes for valid code. Keep the original source for editing, and test the minified version before deploying.

Are licence comments kept?

JavaScript comments starting with /*! or containing @license are kept.

Related tools

All Developer Tools →