CSS, JS & HTML Minifier
Strip comments and whitespace to make your code files smaller.
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 โRegex Tester
Test a regular expression against sample text with live match highlighting.
Hash Generator
Generate MD5, SHA-1, SHA-256, SHA-384 and SHA-512 hashes of any text.
URL Encoder / Decoder
Percent-encode or decode URLs and query string components.
Base64 Encoder / Decoder
Encode text to Base64 or decode Base64 back to text, with full Unicode support.
JWT Decoder
Decode a JSON Web Token and read its header, payload and expiry.
.htaccess Redirect Generator
Build redirect, HTTPS, www and caching rules for Apache.