Web & SEO Tools ›
JS Minifier
Strip comments and excess whitespace from JavaScript. A safe minifier that preserves semantics - no variable mangling.
Private - runs in your browser
No signup required
Free forever
How to use JS Minifier
- Paste your JS.
- Click Minify.
- Copy the result.
Features
- // and /* */ comment removal
- Whitespace collapse
- Preserves strings & regex literals
Why use it
- Smaller JS payloads
- Faster page loads
Frequently asked questions
Is this as good as Terser?
No - this is a quick whitespace minifier without name-mangling. Use Terser for maximum compression.