Skip to content
Toolden

TOOLDENEVERYDAYON-DEVICE

CSS, JS & HTML Minifier: Compress Code

Remove comments and whitespace from CSS, JavaScript, and HTML. All processing happens in your browser.

0 chars · output updates live.

Ctrl/⌘+Enter to minify
Pick a language on the left, paste code, the minified result appears on the right with byte savings.
Type code on the left to see the minified output here.

No output yet, type code on the left.

HOW TO USE

  1. 1Pick a language on the left, CSS, JS or HTML.
  2. 2Paste your code on the left, output appears live on the right.
  3. 3Press Ctrl/⌘+Enter, or click the round Minify button, to re-minify.
  4. 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 count

FAQ

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.

RELATED TOOLS