Skip to the content
Start free

JavaScript Minifier

Strip comments and spare spaces from JavaScript, without breaking strings. It runs in your browser: nothing you type leaves your device, and there is no sign-up.

  • Free
  • No sign-up
  • Runs in your browser

Loading the tool…

Private: what you type is worked on by this page, on your device. It is never sent to us or anyone else, and we keep nothing.

Open in the URSY app →

Strip comments and spare spaces from JavaScript, without breaking strings. It runs in your browser: nothing you type leaves your device, and there is no sign-up.

What it does #

Not a compiler: no renaming, no tree-shaking, no risk.

Useful for:

  • Shrink a snippet for an inline tag.
  • Strip comments before sharing.
  • Squeeze a bookmarklet under length limits.

How to use it #

  1. Paste the JS.
  2. Read the stripped result and savings.
  3. Test it — you always test it.
  4. For production bundles, use a real minifier (terser et al.).

Know the limits #

  • Rule-based findings are evidence for human judgement, not a verdict; passing every check guarantees no ranking, citation or delivery outcome.
  • The analysis covers only what you supply, at this moment — live systems, remote state and future behaviour are outside its sight.

Private by design #

What you paste or type is worked on by this page in your own browser. It is not sent to URSY or to anyone else, and nothing is kept after you close the page. We only count that the tool was used, never what you put in it.

Questions #

Why “whitespace minifier” and not just minifier?

Truth in labelling: real minifiers parse and rewrite (rename variables, drop dead code) and need a full JS engine grammar. This tool removes comments/whitespace with string-aware care — meaning-preserving by construction, modest by design.

Can it break anything?

The known edge: automatic-semicolon-insertion code that RELIED on line breaks. Well-formed code with semicolons survives untouched; cursed code was already cursed.

Words to know #

Page facts checked 23 Nov 2026. Sources: Chrome: minify JavaScript

Cite this page: JavaScript Minifier. URSY. Updated 24 November 2026. https://ursy.com/webmaster-tools/javascript-minifier/ · Section links

All Webmaster Tools → · Every URSY tool →