Minify JavaScript, CSS and HTML to Speed Up Your Website
Smaller files load faster, especially on mobile. Minify JavaScript with Terser, plus CSS and HTML, and see how much space you save.
Open the free HTML / CSS / JS Minifier →What is the HTML / CSS / JS Minifier?
Minify JavaScript (Terser), CSS and HTML to shrink file size. It's completely free, needs no sign-up and works on any phone or computer.

Why it's helpful
- Removes whitespace and comments safely
- JavaScript minified with Terser, a professional tool
- Shows the size saved
Who it's for
Web developers and site owners improving page speed.
How to use it
- Choose the language, paste your code and click Minify.
- JavaScript uses Terser, the same minifier many build tools use.
💻 Open source: this tool is free and open source (MIT License). View the code on GitHub, download it and run it offline.
The bigger picture: Developer
Developers lose a surprising amount of time to small tasks: formatting data, decoding tokens, converting between formats and checking syntax. Fast in-browser tools keep you in flow and keep sensitive data off third-party servers.
What's changing: AI coding assistants now write a lot of code, but developers still need quick, trustworthy tools to inspect and verify what comes out: formatters, validators and decoders matter more, not less.
Frequently asked questions
Is minified code safe to deploy?
Yes, but keep your original source. Minified code is hard to edit.



