๐Ÿ“ฆ

CSS, JS & HTML Minifier

Strip comments and whitespace to make your code files smaller.

Advertisement
Ad slot: top
This is a safe, conservative minifier: it strips comments and unnecessary whitespace but never renames variables, so it will not break your code. For maximum compression of large JavaScript bundles a build-step tool such as Terser will squeeze out more.
Advertisement
Ad slot: incontent

About the CSS, JS & HTML Minifier

A conservative minifier: it removes comments and unnecessary whitespace but never renames variables or rewrites logic, so the output behaves exactly like the input. Strings and template literals are protected, so text inside quotes is left alone.

The CSS tab also has a beautify button for reading a minified stylesheet that somebody else compressed.

Frequently asked questions

Is it safe for production JavaScript?

It is safe, but a build-step tool like Terser will compress far more by renaming variables. Use this for quick one-off files and inline snippets.

Related tools

All Developer โ†’
Advertisement
Ad slot: bottom