Advertisement

Free Online Code Minifier

Minify HTML, CSS, and JavaScript to reduce file size for faster pages.

—

JavaScript is minified with Terser. CSS and HTML use a conservative whitespace and comment cleanup. Always test minified code before deploying it.

Advertisement

About the Code Minifier

Free online code minifier for HTML, CSS, and JavaScript. Remove whitespace, comments, and line breaks to reduce file size for faster pages.

How to use this tool

Use the controls above to enter your values, choose your options, and view the result. The tool updates as you work, and the result can be copied or downloaded where supported.

Frequently asked questions

Is this tool free?

Yes. Every tool on ImGenerate is free to use and does not require an account.

Is my data safe?

Tools that run entirely in the browser keep your data on your device. Any server-backed lookup is noted in the tool and only sends the information needed for the result.

Sponsored
Find a bug? Report now