What this tool does
Use this free browser based code minifier to compress JavaScript, CSS, and HTML without sending files to any server. It removes comments, extra spaces, and unnecessary line breaks to reduce file size and improve page speed. All processing happens on your device for privacy and speed. Developers, marketers, and SEO teams can use it to make production builds smaller and faster with one click.
Why it is useful
- Reduces file sizes for faster loading and better Core Web Vitals.
- Fully client side. No uploads. No API. Works offline once loaded.
- Includes safe options like keep line breaks and keep important comments.
- Supports batch paste or file upload for quick workflows.
- Copy, print, download, and share actions built in.
Key features
- Minify JS, CSS, and HTML with selectable options.
- Quick minify and pretty size stats before and after.
- Preserves strings, template literals, and regex safely in JS with a conservative pass.
- Removes CSS comments and extra whitespace and compacts common patterns.
- Strips standard HTML comments and compresses whitespace outside pre, code, textarea, script, and style.
How to use
- Select content type JS, CSS, or HTML.
- Paste your code or upload a file.
- Choose options. Click Minify.
- Copy, print, download, or share the result.