HTML & CSS Minifier / Beautifier

Minify HTML or CSS to strip whitespace, comments, and extra characters. Or beautify minified code back into readable form. Live byte savings shown.
Developer Utility
A good minify saves 30-60% on raw bytes: before gzip even kicks in.
Minification mostly matters for inline critical CSS and above-the-fold HTML, where every byte delays First Contentful Paint. Below the fold, modern bundlers handle it. This is for the hand-edited bits: email templates, schema blocks, inline critical CSS.
Mode + language
Input
0 bytes
Output
0 bytes
Savings
Original
0
bytes
Result
0
bytes
Saved
0%
–
Frequently asked questions
What does minification do?
Removes whitespace, comments, and other non-functional characters from HTML, CSS, or JS to reduce file size.
How much size savings should I expect?
Typical: 15 to 40% for HTML, 20 to 50% for CSS, 30 to 60% for JS. Gzip then applied on top compresses further.
Does minification break anything?
Rarely for HTML. CSS and JS can break if comments contain conditional logic (older IE conditional comments, pragma hints). The tool preserves these by default.
When should I minify?
At build time. Serve minified assets in production. Keep unminified sources for development and debugging.
Should I minify inline JS and CSS?
Yes. Inline assets inside HTML also benefit, and the HTML minifier here does it in one pass.
Does the tool uglify (rename variables)?
No. It's minification only: whitespace and comment removal. Mangling (uglify) is a separate step that requires parsing.
Does gzip replace minification?
Not fully. Minification plus gzip beats gzip alone. The two complement each other.
Does Brotli compress better than gzip?
Yes, about 15 to 25% smaller on text. Modern CDNs serve Brotli to supporting browsers automatically.
Can I beautify minified code?
Yes. The tool's Beautify mode un-minifies for readability. Useful when debugging minified production code.
What about source maps?
Source maps let browsers debug minified code against the original source. Not generated by this tool: use webpack/esbuild for that.
Does minification affect SEO?
Indirectly. Faster pages rank slightly better. The Core Web Vitals impact comes from compression + delivery, not minification alone.
Free · no account

SEORCE for Chrome, Edge and Firefox

Audits the page you are on: headings, meta tags, schema, indexability, and whether AI crawlers can read it. Export the result as a PDF. Free, with no account.

It audits one page at a time and does not track AI answers. About the extension

Across the whole site

One check here. Every page in SEORCE.

This tool does one job. SEORCE Technical Suite crawls your whole site with fast and secure crawlers and ranks technical issues by impact. AutoFix applies fixes for meta tags, schema, canonical tags, image alt text, headings and internal links for orphan pages on your live site, through one script tag, and the list keeps growing.
3,000+ users · Free forever plan, no card needed