CSS, JS & HTML Minifier

Remove comments and extra whitespace from CSS, JavaScript or HTML to cut file size.

About this tool

Minifying removes characters browsers do not need. This is a light, safe minifier that keeps JavaScript line breaks to avoid breaking code.

How to use CSS, JS & HTML Minifier

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

Frequently asked questions

Is this as strong as a build tool?

No. Tools like esbuild also rename variables. This one only strips comments and spaces.

Will it break my code?

It is conservative, but always test the result.