Developer4 min

Code Minifier: Shrink JS, CSS, and HTML

Reduce file size of code snippets with our online minifier for JavaScript, CSS, and HTML.

UtilityTools Team

Minification removes comments, whitespace, and optional syntax to produce smaller files for production. Our Code Minifier handles JavaScript (Terser), CSS (CleanCSS), and HTML.

Select your language, paste the code, and click minify. The output is ready to embed inline or deploy to a CDN.

Minified code is harder to read — always keep an unminified source copy in version control. Never minify what you cannot recover.

Pair with our CSS Beautifier when you inherit minified stylesheets and need to make sense of them again.

Try it now

Code Minifier

Minify JS, CSS, HTML snippets.

Open Code Minifier