JavaScript Minifier

Minify JavaScript by stripping whitespace and comments

🔒 100 % im Browser🆓 Für immer kostenlos⚡ Kein Signup
Hinweis: Das Tool-Interface unten ist aktuell nur auf Englisch verfügbar. Wir übersetzen die UIs Stück für Stück. Dieses Tool auf Englisch ansehen →

This minifier strips comments and unnecessary whitespace. For production builds with variable-name mangling and tree-shaking, use a parser-based tool like esbuild or Terser.

So funktioniert's

  1. 1
    Paste your JavaScript

    Drop any JS - a single function, a whole file, or a snippet.

  2. 2
    Click minify

    Comments, whitespace, and unnecessary line breaks are stripped instantly.

  3. 3
    Copy the result

    Copy the minified output or see the size reduction.

Über JavaScript Minifier

Free online JavaScript minifier. Strip comments, whitespace, and redundant semicolons from JS to reduce file size - typically 20-50% smaller. Handy for one-off pastes when you don't want to spin up a full build pipeline. Runs entirely in your browser. JavaScript Minifier auf 712 Tools läuft komplett in deinem Browser über native JavaScript APIs - kein Server sieht je deine Daten. Das heißt: sofortige Ergebnisse, volle Privatsphäre und keine Upload-Limits.

Ob für eine Debugging-Session, einen schnellen Sanity Check oder einen Produktions-Incident - dieses Tool ist kostenlos so oft nutzbar, wie du willst. Keine Wasserzeichen, kein Signup und keine Ads im Tool selbst.

Häufige Fragen

How much smaller does the JS get?

Typically 20-50%. Comment-heavy or well-formatted files shrink more; already-minified code shrinks less.

Does it mangle variable names?

No. Only whitespace and comments are removed - variable names are preserved. For name mangling use a real bundler like esbuild or Terser.

Will it break my code?

It preserves the code's tokens. That said, minification via regex has edge cases with regex literals and template strings - for production code, use a proper parser-based tool.

Is my code uploaded?

No. Minification runs entirely in your browser.