Terser parses and minifies the input with its default options. It can remove unnecessary whitespace and ordinary comments, shorten local names and simplify code; some special comments may remain. This page does not bundle modules or transpile syntax for older browsers.
This page returns only the generated JavaScript and does not produce a source map. Keep the readable original separately. If you need source maps for debugging, generate them in your build workflow so they match the code you deploy.
Common questions and answers about this topic.
It uses Terser with its default options to remove unnecessary whitespace and ordinary comments, shorten local names and simplify JavaScript. Processing runs locally in your browser, and you can copy or download the result. It does not bundle modules, transpile syntax or output a source map.
Do not assume identical behavior for every input. Terser can change or remove function and class names, which can affect code that reads .name. Keep the original and test the output in your target environment before deploying. This page does not output a source map.
There is no fixed reduction percentage. It depends on the original code, comments and how much it is already minified. Very short inputs may even become slightly larger. The size comparison uses UTF-8 bytes and does not measure gzip or Brotli transfer size.
No, JavaScript minification runs entirely in your browser. Your source code is processed locally and never sent to any external service.