JavaScript Minifier

Free online JavaScript minifier and formatter. Minify JS by stripping comments and whitespace, or re-format with proper indentation. Shows size reduction stats. — runs 100% in your browser, client-side only. No data is sent to any server. Free to use, no account required.

Free Client-Side No Login No Storage
Loading tool...

How to Use the JavaScript Minifier

  1. Paste your JavaScript.
  2. Choose Minify or Format mode.
  3. Click the action button.

Minifies JavaScript by stripping comments and collapsing whitespace. Preserves license comments (/*!). For production, consider Terser or esbuild.