Shrink your JavaScript by stripping comments and needless whitespace — safely, without breaking your code. Everything runs entirely in your browser; nothing is ever uploaded.
⚡ Minify JavaScript
Original
0 B
Minified
0 B
Saved
0%
Note: This is a lightweight comment & whitespace minifier — for heavy optimisation
(variable renaming, dead-code elimination) use a full build tool like Terser or esbuild.
It safely preserves strings, template literals, regular expressions and keeps newlines between
statements so automatic semicolon insertion won't break.