JavaScript Minifier
Compress pasted JavaScript snippets or local .js files with Terser running locally in your browser. Source code is parsed for minification only and is never executed.
Click to choose a JavaScript file or drop it here
You can also paste JavaScript directly into the editor below.
Input: 0 bytes
Output: 0 bytes
Browser-native minification
Terser is bundled only for this tool route, so pasted JavaScript is compressed locally without a server-side execution path.
Parse error feedback
Syntax errors are shown on the page with line and column details when the parser provides them.
Size comparison
Compare original and minified byte counts before copying or downloading compressed JavaScript.
Frequently asked questions
Is my JavaScript uploaded to Convertr?
No. The minifier runs locally with browser JavaScript. Pasted code and selected files are not sent to Convertr servers.
Does the tool execute pasted JavaScript?
No. Source text is parsed and transformed by Terser for compression only. The page does not eval code or load user-provided scripts.
Why is name mangling disabled by default?
Mangled names make output smaller, but some code relies on function names, class names, or reflection. You can enable it explicitly when size matters more.