JavaScript Minifier
Paste JavaScript to strip comments and extra whitespace. Runs entirely in your browser — nothing is uploaded or executed.
Paste JavaScript to strip comments and extra whitespace. Runs entirely in your browser — nothing is uploaded or executed.
This strips comments and leading and trailing whitespace but keeps line breaks. Collapsing everything onto one line is how naive minifiers break code through automatic semicolon insertion (a bare return followed by a value on the next line, for example).
You get a smaller file that behaves exactly like the original.
Good for inline scripts and small files where a bundler is overkill.
See original size, minified size and percentage saved.
Use a real bundler such as esbuild for variable renaming and dead-code removal.
Removing them can change how the code runs. Keeping them trades a smaller saving for never breaking your script.
No. That needs a full parser and a build step.
No. Everything runs locally.
Upzilla checks your pages and endpoints from several regions, around the clock.