Utilities

JavaScript Minified JS

Minify and format JavaScript code locally in your browser.

77 B -> 0 B, 100.0% smaller

About JS Minifier

The JavaScript minifier runs Terser in your browser with its default settings, which compress the code and shorten local variable names. If the code has a syntax error, you see that error instead of output. Beautify / Format lays the code out again with Prettier.

Frequently asked questions

Will minification break my code?

Not for standard JavaScript. With its default settings Terser renames local variables but leaves global names and property names alone. Code that reads its own function names at runtime can still behave differently.

Should I use this on a bundle from webpack?

No, your bundler already includes Terser. This tool is for one-off scripts or inline snippets.