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.
Examples
.btn {
color: red;
padding: 1rem;
}.btn{color:red;padding:1rem}// header
const x = 1; /* unused */
console.log(x);const 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
- 📐 JSON Formatter — Format, validate, and minify JSON with syntax error highlighting.
- 🔍 Text Diff Checker — Compare two pieces of text line by line. See additions, removals, and changes.
- 📐 SQL Formatter — Format messy SQL queries with proper indentation and keyword case.
Why this tool
vs typical free web-tool sites
| 1vw | Typical free site | |
|---|---|---|
| Price | Free | Free |
| Signup required | No | Often (for premium features) |
| Ads inside the tool | No | Yes (banner + video) |
| Data sent to server | No (browser-only) | Yes (inputs analyzed for ads) |
| Total tools | 96 | Often <20 or scattered across sites |
| Bookmarkable URL per tool | Yes | Mixed |
| Loads in under 1s | Yes (static) | Often slow (ad tracking) |
| Multilingual | EN / ES / PT / FR / DE | Usually EN only |
| Open source | Yes | No |