Code Minifier

Minify JavaScript and CSS for production.

Input Code

Minified Code

About Code Minifier

Code Minifier compresses JavaScript by removing whitespace, shortening variable names, and eliminating dead code, and shrinks CSS by stripping comments and collapsing shorthand properties. The result is production-ready code that loads significantly faster than the original. This is a quick way to reduce bundle size without configuring a full build pipeline.

Frequently Asked Questions

Is Code Minifier free?

Yes, completely free. No signup, no account, no usage limits. Use it as much as you need.

Is my data secure?

All processing happens directly in your browser using JavaScript. Your data is never sent to any server, stored, or shared. It stays entirely on your device.

Can minified code be un-minified back to readable source?

Not exactly. Minification is lossy — variable names are shortened irreversibly. You can use a JavaScript beautifier to add whitespace back, but original names are gone.

Does JavaScript minification break code that relies on Function.name or toString()?

Potentially yes. If your code reads function or class names at runtime, minification that mangles names will break it. You can disable mangling in the advanced options.