Minify any code in your browser - no server, no signup, no watermark.
Auto-detects language, catches console.log leaks,
shows a real-world performance impact score, and downloads
as script.min.js. Five languages, one tool.
Minified code appears here
Paste code and click Minify
What makes it different
Every other free minifier just strips whitespace and calls it done. This one catches your bugs, shows your savings, and fits into your real workflow.
Paste any code - the tool detects JS, CSS, HTML, JSON, or SQL automatically and switches tabs. No manual selection needed.
instant detectionBefore you deploy, the tool scans your JS for console.log, console.warn, debugger and other debug statements you forgot to remove.
saves embarrassmentSee exactly how much load time you save - on 3G, 4G, and broadband. Real numbers, not vague promises.
3G · 4G · broadbandToggle what gets removed - keep license comments, auto-uppercase SQL keywords, shorten hex colors, remove zero units. Real control.
JS · CSS · HTML · JSON · SQLDrag and drop a .js or .css file - it reads, minifies, and downloads as filename.min.js. Real workflow, not just copy-paste.
drag & drop → .min fileAdd multiple files to the queue and download all results as a ZIP. Nobody else offers this free.
batch · ZIP downloadQuick guide
No build tools, no terminal, no npm. Just paste and go.
Paste any JS, CSS, HTML, JSON or SQL into the editor, or drag and drop a file. The language switches automatically.
Choose whether to remove console.logs, preserve license comments, shorten hex colors - then hit the blue Minify button.
Copy to clipboard, download as script.min.js, or share a link to the minified version with your team.
Minification removes every character from your source code that a browser doesn't need to execute it - spaces, line breaks, comments, and long variable names. The code runs identically, but the file is significantly smaller and downloads faster.
According to Google's PageSpeed documentation, minification is one of the highest-impact optimisations you can make to a website's performance. It is also one of the easiest - especially with a tool like this.
| Language | Typical size reduction | With Gzip on top | Best for |
|---|---|---|---|
| JavaScript | 30–60% | 70–90% | Removing comments, whitespace, debug code |
| CSS | 20–40% | 60–80% | Collapsing rules, shortening values |
| HTML | 10–30% | 50–70% | Removing comments, collapsing whitespace |
| JSON | 10–25% | 40–60% | Removing all whitespace and formatting |
| SQL | 15–35% | 50–65% | Collapsing queries, normalising keywords |
For production sites with complex JavaScript, a build tool like Webpack, Vite, or Rollup with a minifier plugin (Terser for JS, cssnano for CSS) is the right long-term solution. But for quick checks, one-off files, client deliverables, or projects without a build pipeline, a browser-based minifier like this one is the fastest path to a smaller file.
Minify your JS and CSS before pushing to production to reduce load times immediately.
Minify HTML email templates to reduce message size and improve deliverability.
Minify plugin JS/CSS before submission to the plugin directory.
Every byte matters on mobile. Minified files load faster on slow connections.
Minify JSON API responses to reduce payload size and improve response time.
Minification directly improves Google PageSpeed and Core Web Vitals scores.
FAQ
Everything about minifying JS, CSS, HTML, JSON and SQL for production.
Ask a questionconsole.log, console.warn, console.error, and debugger statements that developers often forget to remove before deploying to production. You can choose to remove them automatically using the options panel.