JS Minifier — Strip Comments & Whitespace, See Savings Instantly

Paste JavaScript—get minified code, a percent-smaller stat, before→after character counts, optional Live updates, and one-tap copy. Runs only in your browser—no upload, no signup, no watermark.

Minify JavaScript online

Shrink snippets, bookmarklets, and inline handlers before you paste into tests or demos.

1 Paste JS · 2 Minify · 3 Copy

JavaScript input

Minified output

Try . Minify more? HTML · CSS · JSON.

Runs in this tab only—no server upload, no signup, no watermark.

Paste JavaScript—we strip line + block comments and whitespace, then show % smaller and chars saved.

What you will see: Minified JS, savings in the stats bar, and Copy JavaScript. Next: click Minify JavaScript or keep Live on.

Minified JavaScript appears here

Paste a function or script, or tap sample JS.

Next: Copy into your editor. This is a quick text pass—not Terser or SWC. Use your bundler for production. Turn off Live for huge pastes. · All tools

  • Works in your browser—runs on your device, not our servers
  • No upload required—your input stays in this tab
  • Free and instant
  • No account needed
  • Private by default—the same ProToolbox promise on every page

What this is for

JS Minifier — Strip Comments & Whitespace, See Savings Instantly helps you format, validate, and encode before paste: works in your browser, no account needed. JSON, YAML, Base64, URLs, escapes—check here first, then ship to PRs, Slack, or configs.

  • Re-validate after every payload edit
  • Copy from the panel—nothing leaves your device until you do
  • Local run for tokens and internal data
  • Green here, then paste into production paths

Security: Fast correctness pass only—secrets still go through your team’s review.

Why minify JavaScript

Smaller scripts mean quicker copy-paste into tickets, demos, and embed fields. Local minification keeps proprietary logic off random online compressors.

How it works

  1. Paste JavaScript (snippet or file).
  2. Click Minify JavaScript or keep Live on.
  3. Check the stats bar for percent saved and character counts.
  4. Copy JavaScript or chain CSS / HTML minifiers.

FAQ

  • Will this break regex literals or template strings? It removes comments and whitespace only—it does not parse the language. Spot-check minified output for edge cases.
  • // inside strings? The line-comment stripper is naive; verify output if your strings look like comments.
  • Large bundles? Turn off Live for big pastes; prefer your bundler for megabyte files.

Bookmark this page when you ship snippets daily—minified JS is one paste away.