JavaScript Minifier

Remove comments and extra spaces from JavaScript in a safe mode that keeps strings intact.

Runs on your device Free, no sign-up No watermark

How to use JavaScript Minifier

  1. 1

    Paste your code.

  2. 2

    Minify it.

  3. 3

    Copy the result.

Good to know

  • Names are not shortened. Use a build tool for that.

Your privacy: this tool runs entirely in your browser. Your files are not uploaded, stored or seen by anyone.

You might also need

All tools