JavaScript Minifier
Minify JavaScript code to reduce bundle size and improve page load speed.
No server uploads – 100% private · Free · No login · No watermarks
Related Tools
Your files and data never leave this device. Zero server processing.
All tools are free, with no limits. A small coffee keeps the lights on.
What JavaScript Minifier does
JavaScript Minifier shrinks code with Terser for faster loading, or beautifies it for reading, in your browser so your code stays private.
How to use JavaScript Minifier
- Paste JavaScript or upload a .js file.
- Set the Configuration.
- Choose Minify or Beautify, then copy or download.
Good to know
- Names may change, so code that relies on function names needs the keep-names options.
Options explained
- ECMAScript
- from ES5 to ES2020+.
- Comments
- Keep /*! licence */ only, Keep all or Remove all.
Which settings should I use?
| You want | Set |
|---|---|
| Code for modern browsers | ES2020+ |
| Code that must run in very old browsers | ES5 |
| Licence notices kept | Comments: keep /*! licence */ only |
How it works
- Terser, the minifier most build tools use, shrinks the code: names are shortened and spaces removed.
- Privacy: it runs in your browser, so your code and data are never sent anywhere.
Common problems
- Code broke after minifying
- It relies on function or class names. Turn on the keep-names options.
- A syntax error stops it
- The code has a mistake. Fix it, or set the ECMAScript version it was written for.
Disclaimer
Minified code should be tested before release. Renaming can break code that depends on names. Minifying doesn't protect code from being copied, and it isn't encryption. TitanFile Convert tools are free and provided as they are, with no guarantee of a perfect result. Everything runs on your own device, so we never see your files or results.
Frequently Asked Questions
Is JavaScript Minifier free, and are my files uploaded?
Why TitanFile Convert for JavaScript Minifier?
Client-side only
JavaScript Minifier runs entirely in your browser tab. Your code and text never touch a server.
Works offline
Once the page loads, you can disconnect. Install TitanFile Convert as a PWA for instant offline access anytime.
Free, no limits
No tiers, no rate limits, no expiring trial, no login. Every feature of every tool is free.