← All tools
Developer tool

JS Minifier

Minify JavaScript to reduce file size. Remove comments and whitespace for production.

Copied!
Input JavaScript
Minified JS

Minify JavaScript for a page

Reduce whitespace and comments in JavaScript text when creating a compact script.

  1. Paste your source into Input JavaScript.
  2. Select Minify JS and review the resulting script.
  3. Copy the minified code and run your application tests before publishing it.

Example

A small helper function can take fewer characters after comments and formatting spaces are removed.

What to check

Minification does not replace syntax checking or application testing. Preserve your readable source and verify string literals and behavior.

Share your feedback

Found a bug? Have a suggestion? We read every message.

✓ Thank you!

We appreciate your feedback and will look into it.