How to use the JavaScript Minifier
- 1Paste your JavaScript
- 2Click Minify JavaScript
- 3Copy or download the .min.js file
About this tool
Smaller scripts download and parse faster, improving Core Web Vitals. The minifier uses Terser, the same engine used by major build tools.
Frequently asked questions
Valid code keeps working. Syntax errors are reported with their line and column.
No, minification runs in your browser.