HTML, CSS & JS Minifier
Shrink your code with the same engines build tools use, and see how many bytes you save.
- Your data never leaves your device
- 100% free
- No sign-up
- Works offline after first load
How to minify HTML, CSS or JavaScript
- Paste code or open HTML, CSS or JS files.
- Pick the options for each language — see the savings.
- Copy the minified code or download it.
About HTML/CSS/JS Minifier
Minify HTML, CSS and JavaScript with professional engines.
Everything works in your browser, so it is instant and private, and your settings are remembered on this device.
Good for
- Speeding up websites and landing pages
- Shrinking scripts and styles for email and embeds
- Preparing files for CDNs
Tip: Turn on “Remove console.* calls” for production builds.
Frequently asked questions
How much smaller will my files get?
Typically 20–60% for JavaScript and CSS and 10–30% for HTML, before gzip. The report shows the original, minified and gzipped sizes.
Is the minified code safe?
Yes — Terser and CSSO are the same engines used by Vite, webpack and other build tools. The HTML minifier keeps whitespace that changes how text looks, and leaves pre, textarea and conditional comments alone.
Can I keep license comments?
Yes — choose “Keep license comments” for JavaScript or keep /*! … */ comments for CSS.
Can I minify several files at once?
Yes — open several files; each is minified with the right engine and you can download them all as a ZIP.
Is my data uploaded?
No. Everything is processed by JavaScript in your browser — nothing you paste or open is sent to a server, so it is safe for API responses, tokens, configs and customer data. It also works offline once the page has loaded.