Free code minifier. Shrink JavaScript with Terser and CSS with csso, plus a structural HTML pass that strips comments, collapses whitespace, and cleans redundant attributes. Toggle mangling, compression, and aggressive HTML options, then compare before/after byte counts and the savings percentage.
1Pick a languageSwitch between the JavaScript, CSS, and HTML tabs.
2Tune the optionsTurn mangling and compression on or off, pick the CSS optimization level, or enable aggressive HTML mode.
3Copy the outputRead the before/after byte counts and the savings percentage, then copy or download the minified code.
FAQ
Questions people ask
JavaScriptCSSHTMLMore
Source
JavaScript sourcejavascript
1
2
3
4
5
6
7
8
function greet(name) {
const greeting = "Hello, " + name + "!";
console.log(greeting);
return greeting;
}
greet("world");
Mangle namesShorten local variable and function names.