Developer Tools

CSS, JS & HTML Minifier / Beautifier

Minify to shrink file size or beautify to make compact code readable. CSS and JavaScript are fully hand-rolled and run locally with no dependencies; HTML beautification loads the js-beautify library from a CDN — the one exception to this page's "nothing leaves your browser" tools.

Input

Code

Output

Result

Input size
0 B
Output size
0 B
Reduction
0%

FAQ

CSS, JS & HTML Minifier / Beautifier FAQ

Does this tool rename variables or remove dead code?

No. This is a safe, conservative minifier — it strips comments and unnecessary whitespace only. It never renames identifiers or eliminates unused code, so behavior is guaranteed to stay identical to your original code.

Is the beautifier a full code formatter like Prettier?

No. It's a heuristic, token-based re-indenter — useful for making minified or compact code readable, but it doesn't make the deep formatting decisions of a full AST-aware formatter.

Why does the HTML tab work differently from CSS and JS?

HTML beautification uses the well-established js-beautify library, loaded from a CDN, for high-quality formatting — the only external dependency on this page. HTML minification is still hand-rolled and safe: it strips comments and collapses whitespace while leaving <pre>, <textarea>, <script>, <style> content and attribute values untouched.

Is my code uploaded to a server?

No. Tokenizing, minifying, and beautifying all happen client-side in your browser. The only network request this page makes is loading the js-beautify library file itself for HTML formatting — your code is never sent anywhere.