Skip to main content
>_laboratory.sh

CSS / JS / HTML Minifier

Minify CSS, JavaScript, or HTML to reduce file size. Remove comments and unnecessary whitespace.

How to Use CSS/JS/HTML Minifier

Step 1

Select the code type using the CSS, JS, or HTML tabs.

Step 2

Paste your code into the input field.

Step 3

Click Minify to compress the code.

Step 4

Copy the minified output and see the size reduction.

Features

Minify CSS by removing comments and whitespace.

Minify JavaScript by stripping comments and excess spacing.

Minify HTML by removing comments and compressing whitespace.

See the percentage of size reduction after minification.

One-click copy to clipboard.

Completely client-side — no data leaves your browser.

FAQ

This tool supports CSS, JavaScript, and HTML minification. Use the tabs to switch between them.

CSS minification removes comments and collapses whitespace. JS minification strips comments and excess whitespace. HTML minification removes comments and compresses whitespace between tags.

The minifier uses conservative rules. For CSS and HTML it is very safe. For JS, it performs basic whitespace and comment removal which works for most code but may not handle all edge cases like complex template literals.

No. All minification happens locally in your browser. Your code is never transmitted anywhere.