JS Minifier cover

JS Minifier

Compress JavaScript by removing comments and collapsing whitespace — with before/after size stats.

Lightweight minifier: strips comments and collapses whitespace while preserving strings, regexes and template literals. For production builds, also run your bundler.

How to use

Paste your JavaScript and click Minify. The output plus size savings appear instantly.

Frequently asked questions

Is this JS minifier free?

Yes, free with no signup.

Is it safe for production code?

It removes comments and redundant whitespace while preserving strings and template literals. For production builds, also test with your bundler.

Is my code uploaded?

No, it all runs locally.

Related tools

ASCII Art Text BannerASCII Code TableBase32 Encoder / DecoderBase64 Encode DecodeBase64URL EncoderBcrypt Cost Estimator