JavaScript Minifier
To minify JavaScript, paste your code and click Minify: Terser removes whitespace and comments, shortens variable names and drops dead code, supporting modern ES2024 syntax. Syntax errors are reported with the line.
- Free
- No signup
- Runs in your browser
How to use JavaScript Minifier
- 1Type or paste your input into the JavaScript Minifier.
- 2Choose any options you need.
- 3See the result update instantly.
- 4Copy the result or download it.
JavaScript Minifier: questions people ask
Will it break my code?
Terser is the minifier used by webpack and Vite. Code that relies on function names (fn.name) may need 'Keep function names' ticked.
Can I get a source map?
Yes. Tick 'Source map' to download one alongside the minified file.
Is my data uploaded when I use the JavaScript Minifier?
No. The JavaScript Minifier runs entirely in your web browser, so your text and numbers stay on your device and work even on a slow connection.
Does the JavaScript Minifier work on iPhone, Android and Mac?
Yes. The JavaScript Minifier runs in any modern browser (Safari, Chrome, Edge or Firefox) on iPhone, iPad, Android phones, Mac, Windows and Chromebook. There is no app to install.
Is the JavaScript Minifier free?
Yes. The JavaScript Minifier is free with no signup, no watermark and no daily limit.