CSS & JavaScript Minifier Online

Minify and compress CSS and JavaScript to reduce page weight. Shows byte savings percentage. Everything in the browser, no upload.

CSS originale
Output minificato

            
JavaScript originale
Output minificato

            

Why minify CSS and JavaScript?

Minification removes whitespace, comments, newlines and reduces code to the bare minimum. The result is functionally identical but smaller, reducing load times and improving PageSpeed scores.

Privacy

Your code is never sent to external servers. All processing happens in the browser via pure JavaScript.

CSS Minifier

Removes comments, unnecessary spaces, leading zeros, shorthand properties and redundant units (e.g. 0px0).

JavaScript Minifier

Removes comments (// and /* */), unnecessary spaces and redundant newlines. For advanced minification with variable renaming, use Terser or UglifyJS.