Remove comments and whitespace from CSS, JavaScript, and HTML. Basic minification — not full AST-level.
Minify CSS, JavaScript, and HTML to reduce file sizes for faster web page loading. The tool strips comments, whitespace, and unnecessary characters while preserving functionality. All minification happens client-side — your source code is never sent to a server.
Input
body {
margin: 0;
padding: 0; /* reset */
}Output
body{margin:0;padding:0}For standard, well-formed code, no. However, code that relies on arguments.caller, Function.name, or specific whitespace formatting may behave differently after minification.
Minification removes whitespace and comments. Uglification also renames variables to shorter names, providing a greater size reduction (and minor obfuscation).
No. Minify only for production. Keep original source files for development. Use source maps if you need to debug minified code.