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
- Paste the CSS or the JavaScript.
- Run the minifier.
- 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.