HTML / CSS / JS Minifier
Shrink CSS, JavaScript and HTML by removing comments, whitespace and unnecessary characters.
Runs in your browser. Nothing is uploaded Free, no sign-up Works on mobile
Language
How to use HTML / CSS / JS Minifier
- Choose CSS, JavaScript or HTML.
- Paste your code.
- Copy the minified output.
Frequently asked questions
Is minification safe?
Yes for valid code. Keep the original source for editing, and test the minified version before deploying.
Are licence comments kept?
JavaScript comments starting with /*! or containing @license are kept.
Related tools
All Developer Tools →- Code Beautifier Make minified or badly indented code readable again.
- SVG Optimizer Clean up SVGs exported from Figma, Illustrator or Inkscape.
- .env Formatter Check environment files for mistakes and convert them for Docker, Kubernetes or documentation.
- cURL Converter Paste a cURL command copied from browser DevTools or API docs and get ready-to-use code.
- JWT Decoder Inspect JSON Web Tokens from your app or API.
- Hash Generator Calculate cryptographic hashes of text or any file and compare them with a published checksum.