Skip to tool
JS Minifier
Basic minification: removes comments and whitespace. Does not rename variables or perform tree-shaking. Always test the output before using in production.
▸About this tool
Strip comments and collapse whitespace from JavaScript to reduce file size. Basic minification: no variable renaming. Runs entirely in your browser.
▸Privacy and details
Your files never leave your device.
Fast browser processing with no account required.
Optimized for desktop and mobile with accessible controls.
▸How to use
- Paste your JavaScript into the input area.
- The minified output appears instantly with the bytes saved shown above.
- Click "Copy JS" to copy the result to your clipboard.
- Or click "Download .js" to save the minified file.
▸Why use this tool
Reducing JavaScript file size improves page load performance. This tool performs safe comment and whitespace removal: no variable renaming or dead code elimination: making it safe to use without a build pipeline.