Assets
CSS & JS Minifier
Minify CSS or JavaScript entirely in your browser — nothing is uploaded to a server.
Everything runs locally in your browser. CSS is minified via safe whitespace/comment stripping; JavaScript uses Terser, the same minifier used by most production build tools.
Language Selector
styles.css
About this tool
Comprehensive documentation & audit utility guideMinification strips out everything a browser doesn't need — comments, whitespace, and (for JavaScript) shortens variable names — to reduce the bytes sent over the wire. CSS is minified with safe, regex-based whitespace/comment stripping; JavaScript runs through Terser, a real parser-based minifier, so it's safe even on complex code.
How it works
1
Pick CSS or JavaScript
Each uses a different, purpose-built minification method.
2
Paste your code
Nothing leaves your browser — minification runs entirely client-side.
3
Copy the output
See the size reduction, then copy the minified result.
What it checks
CSS: comments and unnecessary whitespace removed
JavaScript: full parser-based minification via Terser (safe on real-world code)
Before/after size comparison
