Developer

JavaScript/CSS Minifier

Minify JavaScript or CSS by removing whitespace, comments, and unnecessary characters.

Minified Code

Share This Tool

How It Works

Paste your JavaScript or CSS, select the type, and the tool strips comments and unnecessary whitespace. Note: This is a basic minifier, not as aggressive as UglifyJS or CSSNano.

Example

function hello() { console.log('Hi'); } → function hello(){console.log('Hi');}

Frequently Asked Questions

Does it break my code?
Very rarely with simple minification, but always test your minified code.
Why not use a professional minifier?
This tool is for quick, simple minification. For production, use dedicated tools like Terser.

Rate This Tool