CSS / JS Minifier & Beautifier

Development Client-side minify beautify css javascript formatter compress

This tool runs entirely client-side, in your browser: your data is never sent anywhere.

What it does

Minifies CSS or JavaScript code by stripping comments, unnecessary whitespace, and line breaks — or beautifies already-minified code by re-indenting it, adding line breaks after key characters ({, }, ;) so it's readable again.

Try it

How it works

⚠️ This is a lightweight, regex-based tool for everyday convenience — it covers the vast majority of real-world CSS/JS, but it's not a full parser, so extremely unusual syntax (e.g. strings containing unescaped braces) may not round-trip perfectly. Always keep a backup of your original file.

Everything runs locally in your browser — nothing is uploaded anywhere.