§
§ · free tool
HTML / CSS / JS minifier. Safe transforms only.
Strip comments, collapse whitespace and shorten hex colors across HTML, CSS and JavaScript, with a live before/after size readout. Everything runs in your browser; nothing is uploaded.
A free online tool by Digital HeroesLoad file: drop or click
Your code never leaves your browser. Nothing is uploaded.
, before
→
, after
0% saved
§ 02 · what you can do
Everything a minifier should do.
Minify HTMLStrip comments and collapse inter-tag whitespace in one click, conditional
[if IE] comments and pre/textarea/script blocks stay intact.Minify CSSRemove comments (keeping
/*! licenses), strip last semicolons and shorten six-digit hex colors to three where it's lossless.Minify JavaScript, safelyA string- and regex-aware tokenizer removes comments and blank lines. Variables are never renamed, so behavior can't break.
See live size savingsA before/after byte readout and a progress bar show exactly how much you've saved, updating as you type.
Load any fileDrop or pick a
.html, .css or .js file (up to 10 MB), the language is detected automatically.Copy or downloadGrab the minified output to your clipboard or download it with the right file extension, no account, nothing uploaded.
§ 03 · how to use it
Four steps, no build tool.
- Paste your code into the Input box, or drop a
.html,.cssor.jsfile onto the Load file pill, the language is detected as you paste. - Pick the language if auto-detect guessed wrong, using the HTML / CSS / JavaScript toggle.
- Tune the checkboxes to choose which transforms run, strip comments, collapse whitespace, shorten hex, keep licenses, and so on.
- Copy or download the minified output and check the live size-savings readout to see how much you trimmed.
§ 04 · faq
Frequently asked questions.
Is the minifier free and private?
Yes on both counts. It's completely free with no sign-up or limits, and it runs entirely in your browser, your HTML, CSS and JavaScript never leave your device and nothing is uploaded to a server.
Will minifying my JavaScript break it?
No. JavaScript minification here is safe-only: a string- and regex-aware tokenizer removes comments and blank lines, but variables are never renamed and code structure is left untouched, so behavior can't change. For aggressive AST-level minification (renaming, mangling, tree-shaking) use a build tool such as esbuild or terser.
Does it strip license comments and conditional HTML?
By default it preserves what you'd want to keep. CSS and JavaScript
/*! license comments are retained, and HTML conditional comments like <!--[if IE]> are left in place. Contents of pre, textarea, script and style blocks are never touched.How does auto-detect know the language?
When you paste, it inspects the first characters and structure, a doctype or a leading tag reads as HTML, an
@media/@import rule or selector-with-declarations block reads as CSS, and anything else falls back to JavaScript. When you load a file, the file extension wins. If it ever guesses wrong, just switch the language toggle.Does it work offline?
Yes. Once the page has loaded, all minification runs locally, so it keeps working with no connection, no libraries are fetched at run time.
Published · Last updated .