TOOLDENEVERYDAYON-DEVICE
CSS, JS & HTML Minifier: Compress Code
Remove comments and whitespace from CSS, JavaScript, and HTML. All processing happens in your browser.
HOW TO USE
- 1Pick a language on the left, CSS, JS or HTML.
- 2Paste your code on the left, output appears live on the right.
- 3Press Ctrl/⌘+Enter, or click the round Minify button, to re-minify.
- 4Read the saved bytes and percentage on the right.
EXAMPLE
INPUT
/* Header styles */
.header {
color: #333;
padding: 10px 20px;
}OUTPUT
.header{color:#333;padding:10px 20px} with the saved byte countFAQ
Does it change the behaviour of my code?
No. Only comments and whitespace are removed, nothing else is rewritten, so the semantics stay identical.
Is my code sent to a server?
No. Minification happens entirely in your browser.
Which languages are supported?
HTML, CSS and JavaScript, each with language-specific optimization rules for maximum size reduction.
Does minification change behavior?
No, whitespace removal, comment stripping and light token cleanup preserve exact functionality. Test after minifying.