From pasting code to downloading the minified result — everything happens in seconds.
1
Paste or Upload
Paste your HTML, CSS, or JavaScript code, or drag and drop a file directly into the editor.
2
Auto-Detect Mode
The tool automatically detects your language, or manually select HTML, CSS, or JS from the mode tabs.
3
Minify Instantly
Click Minify or enable real-time mode for instant compression with safe or aggressive settings.
4
Copy or Download
Copy the result to your clipboard or download it as a .html, .css, or .js file instantly.
Features
Everything You Need
A comprehensive, privacy-first code minification tool built for modern developers.
⚡
Real-Time Minification
Enable real-time mode to see your minified code update as you type, with a 300ms debounce for performance.
🧠
Smart Auto-Detection
Automatically detects HTML, CSS, or JavaScript based on code patterns — no manual mode switching needed.
🛡️
Safe & Aggressive Modes
Safe mode preserves structure; aggressive mode applies maximum compression with zero-unit removal and color shortening.
📊
GZIP Size Estimation
See estimated GZIP compressed sizes using the CompressionStream API, so you know the real-world savings.
📦
Batch Processing
Work with multiple snippets simultaneously using tabs. Each tab stores its own input, output, and mode independently.
🔒
100% Client-Side
Your code never leaves your browser. Zero server processing, zero data collection — complete privacy guaranteed.
FAQ
Frequently Asked Questions
Common questions about our code minification tool.
No. All minification happens entirely in your browser using JavaScript. Your code never leaves your device, making it completely private and secure. There are no server-side API calls involved.
Safe mode performs basic minification: removes comments, collapses whitespace, and trims unnecessary characters while preserving code safety. Aggressive mode goes further by removing units on zero values (0px → 0), shortening hex colors (#aabbcc → #abc), removing leading zeros, and more.
Yes. Our JavaScript minifier handles modern syntax including arrow functions, template literals (backticks), const/let, import/export statements, and async/await. It carefully preserves string content while minifying the surrounding code structure.
If your browser supports the CompressionStream API (Chrome, Edge, Firefox 113+), we perform actual GZIP compression to calculate the exact compressed size. In older browsers, we provide an estimate of approximately 30% of the minified size.
Yes! Use the batch tabs at the bottom of the tool. Click the + button to add new snippet tabs. Each tab maintains its own input code, output, detected mode, and stats independently, so you can work on multiple files simultaneously.