JavaScript Minifier
Reduce JS file size by removing comments and collapsing whitespace. See exact bytes saved.
How to use
- Paste your JavaScript code into the input box above.
- Choose which minification options to apply using the checkboxes.
- Click Minify JavaScript to compress your code.
- View the original size, minified size, reduction percentage, and bytes saved.
- Copy the minified output or download it as a .js file.
- For maximum safety, keep all options checked — this tool only removes whitespace and comments.
About this Js Minifier
Use this free JavaScript minifier to reduce JavaScript size by removing unnecessary whitespace and formatting. It is useful for small scripts, snippets, demos, and quick web performance cleanup. No signup is required, and the tool works on phones, tablets, and desktop browsers.