๐๏ธ
HTML / CSS / JS Minifier
Minify HTML, CSS or JS by stripping whitespace and comments.
Loading toolโฆ
How to use the HTML / CSS / JS Minifier
- 1Pick the code type: HTML, CSS or JavaScript.
- 2Paste your code into the input box.
- 3Copy the minified output and view the size saved.
About the HTML / CSS / JS Minifier
Free online HTML, CSS and JavaScript minifier. Strip comments and whitespace, shrink file size, and copy compact code instantly in your browser. No uploads.
Part of our Developer Tools collection. Browse all tools.
Frequently asked questions
- Will minifying break my code?
- This is a lightweight regex-based minifier that strips comments and collapses whitespace. It is safe for most code, but always test the output since edge cases inside strings can occasionally be affected.
- Is my code uploaded to a server?
- No. All minification happens locally in your browser using JavaScript, so your code never leaves your device.
More Developer Tools
โ
{ }
JSON Formatter
Format, beautify, minify and validate JSON.
โโ๏ธ
Base64 Encode / Decode
Encode text to Base64 or decode it back.
โ๐
URL Encode / Decode
Percent-encode or decode URLs and query strings.
โ#๏ธโฃ
Hash Generator
Generate SHA-1, SHA-256, SHA-384 and SHA-512 hashes.
โ๐
UUID Generator
Generate random version-4 UUIDs.
โโฑ๏ธ
Unix Timestamp Converter
Convert between Unix timestamps and dates.