All tools · 📐 Format / Inspect

🗜️ HTML / CSS / JS Minifier

Paste HTML, CSS, or JavaScript source — get a minified version with whitespace and comments stripped. Useful for inline production assets or quick file-size estimates.

Loading tool…

Examples

Minify CSS
Input.btn { color: red; padding: 1rem; }
Output.btn{color:red;padding:1rem}
Strip JS comments
Input// header const x = 1; /* unused */ console.log(x);
Outputconst x=1;console.log(x);

Frequently asked questions

Is this as good as terser / esbuild?

No — production bundlers do dead-code elimination, variable renaming, and tree-shaking. This tool is a quick whitespace/comment stripper, good for hand-written inline assets.

Does it preserve license comments?

No, all comments are removed. If you need license preservation, use terser with /*! preserve */ markers and a real build pipeline.

Will it break my JS?

Mostly no for well-formed code, but minifying JS without parsing it can corrupt template literals or regex literals in edge cases. Use a real minifier in production.

About this tool

HTML / CSS / JS Minifier runs entirely in your browser using standard Web APIs. No data is sent to any server. The source for this tool is in our public GitHub repository.

Related tools

← All 96 tools

Why this tool

vs typical free web-tool sites

1vwTypical free site
PriceFreeFree
Signup requiredNoOften (for premium features)
Ads inside the toolNoYes (banner + video)
Data sent to serverNo (browser-only)Yes (inputs analyzed for ads)
Total tools96Often <20 or scattered across sites
Bookmarkable URL per toolYesMixed
Loads in under 1sYes (static)Often slow (ad tracking)
MultilingualEN / ES / PT / FR / DEUsually EN only
Open sourceYesNo