JavaScript Minifier

Minify JavaScript code by removing unnecessary characters, optionally compressing code and removing comments. Compare file sizes and download the result.

Minifier Settings

Configure the generated JavaScript.

Variable and function name mangling is disabled, helping preserve names in the generated code. Review the result before using it in production.

Input JavaScript

253 bytes

Loading editor...

Minified Output

Your minified code will appear here

Ready to minify

Enter JavaScript code and run the minifier to see the compact result.

Compact output

Reduce unnecessary characters and optionally simplify JavaScript code.

Configurable options

Choose whether to apply compression and remove comments.

Size comparison

Compare input and output byte sizes to measure the change.