What this minifier removes
Comment lines and trailing comments disappear, runs of spaces and tabs collapse to one, and empty lines drop out. Line breaks between statements are kept, which avoids the subtle bugs that newline-stripping can introduce.
Remove comments, trailing whitespace, and blank lines from JavaScript while keeping line structure, a conservative pass that stays safe where aggressive minifiers rewrite code.
All processing happens in this browser tab. Nothing is sent to a server.
Comment lines and trailing comments disappear, runs of spaces and tabs collapse to one, and empty lines drop out. Line breaks between statements are kept, which avoids the subtle bugs that newline-stripping can introduce.
JavaScript inserts automatic semicolons after certain line breaks. Minifiers that delete newlines can accidentally merge statements and change behavior — a return statement and its value can become two different statements. Keeping line structure is the conservative choice.
For production bundles, a full minifier with parsing can also shorten variable names and merge statements. This tool is for quick, private, single-file passes where installing a toolchain is not worth it.
Comments inside quoted strings, URLs that contain double slashes, and braces in template literals are all left alone: the scanner strips comments and whitespace only where JavaScript actually allows them.
Not when the code was correct to begin with: removing comments and redundant spaces cannot alter semantics. The tool reports the size saved so you can judge whether the pass was worthwhile.
No. Renaming requires parsing and scope analysis; this pass only removes bytes that JavaScript does not need: comments and extra whitespace.
It works one file at a time, which suits scripts and snippets. Bundled applications should be minified as part of the build, where module scope is known.
No. Everything runs in this browser tab, even offline after the page loads.
Pick a category to see every tool in it — then open one and discover related tools.