</>DevTools

MINCode Minifier

Minify JavaScript, CSS, and HTML to reduce file size

Code Minifier Guide

Code Minifier shrinks JavaScript, CSS, and HTML by stripping whitespace, comments, and unnecessary characters. Essential for production deployments to improve load times and reduce bandwidth — all processing happens locally in your browser, so even proprietary code stays private.

Supported Languages

  • JavaScript: Terser-powered with compression + mangling, up to 80% smaller
  • CSS: Removes comments, collapses whitespace, trims around delimiters
  • HTML: Strips comments and whitespace while preserving pre, textarea, script, style blocks

How to Use

  1. Pick JavaScript, CSS, or HTML from the dropdown.
  2. Paste your source code into the left input panel.
  3. Click Minify to see the compressed output on the right.
  4. Review the savings percentage, then copy or download the result.

Use Cases

  • Final JS/CSS compression before deploying a static site
  • Inlining minified HTML in email templates
  • Shrinking embeddable widget snippets
  • Optimizing ad creatives and landing pages

💡 Tip: Terser is a heavyweight library and the first run may pause briefly while it loads. Subsequent runs are instant.

🔗Related Tools💻 Regex / Code