JavaScript Minifier
Minify JavaScript by removing comments and whitespace to reduce bundle size.
What is JavaScript Minification?
JavaScript minification removes comments, whitespace, newlines, and other non-essential characters from source code without changing its behavior. The result is a smaller file that downloads and parses faster in the browser.
This tool handles common cases: single-line comments (//), block comments (/* */), string literals (preserved exactly), and operator spacing. For production use, dedicated tools like Terser or esbuild additionally rename variables and apply dead code elimination — features beyond the scope of a browser-based tool.
How to Use
Paste your JavaScript into the input panel and click Min. The minified output appears on the right with a size savings indicator. Use Copy to copy the result to your clipboard.