Performance

CSS/JS Minifier

Terser + structural CSS

Minify

About the CSS/JS Minifier

A free CSS and JavaScript minifier. Paste a stylesheet or a script and copy a smaller version for production.

How to use the CSS/JS Minifier

  1. Paste the CSS or the JavaScript.
  2. Run the minifier.
  3. Copy the result into the file you deploy.

What to check

Minify a copy. Keep the original file for editing, because the minified version is hard to read.

Will minified JavaScript still run?

Yes, when the script was valid. Test the page after you swap in the minified file.

Should I minify files that a bundler already compresses?

No. Run one minifier. Minifying twice can make debugging harder without a smaller file.