What does the minifier change?
It compresses and mangles JavaScript in your browser using Terser. Names can be shortened, so keep a copy of the original source.
Minify JavaScript code to reduce file size and improve performance
Compress and mangle JavaScript code for production using Terser.
Runs in your browser. No signup required.
Follow along with the steps below.
Paste your JavaScript code into the input area
Click Minify JavaScript to compress and mangle the code
Review the minified output in the result field
Copy the optimized JavaScript or reuse it in your project
It compresses and mangles JavaScript in your browser using Terser. Names can be shortened, so keep a copy of the original source.
No. Invalid JavaScript stops the minify step and shows the error.
No. Minification runs locally.
No. This reduces a script you already have. It does not bundle modules, transpile TypeScript, or rewrite JSX.
Advertisement