JS Script Minifier
Strip comments and collapse whitespace in JavaScript safely (no variable renaming).
Why use this tool?
Strip comments and extra whitespace from JavaScript safely. It doesn't rename variables, so for maximum compression use a build tool like esbuild or Terser.
How to use it
- Paste your JavaScript.
- Click Minify JS.
- Copy the output.