Code Minifier

Minify CSS, JSON, and HTML to reduce file size. Removes comments, collapses whitespace, and shows the bytes saved — all client-side, no data sent to a server.

Code Minifier

Minify CSS, JSON, and HTML directly in the browser without uploading your code to a server. Removes comments, collapses whitespace, and strips unnecessary characters to reduce file size and improve page load times.

Frequently Asked Questions

Why is JavaScript not supported?

Safe JS minification requires a full parser to handle edge cases like regex literals, template strings, and ASI (automatic semicolon insertion). A regex-based approach risks breaking valid code. Use a dedicated tool like esbuild or Terser for JS.

Is my code sent to a server?

No. All minification happens entirely in your browser using JavaScript. Your code never leaves your machine.

How much size reduction can I expect?

CSS typically shrinks 20–40%. JSON can reduce significantly if it contained pretty-print indentation. HTML reduction varies widely based on whitespace in the source. Combining minification with gzip compression on your server yields the best results.