JS and CSS Minifier
Minify JavaScript and CSS online with optional console removal and variable mangling, showing original and minified size plus compression ratio. The engine loads on demand.
About This Tool
The JS and CSS minifier shrinks source code into a smaller form ready for production. JavaScript uses a mature engine with optional identifier mangling and console removal, while CSS goes through multi-level optimisation that merges duplicate rules and shortens colours and numbers. Original size, minified size and the reduction ratio are shown immediately.
The minifier loads from a CDN only on first use, so page load stays fast. Everything runs locally and your source is never uploaded, which makes it safe for internal projects.
Key Features
JS and CSS support
Handle both asset types on one page by switching tabs.
Controllable options
Disable mangling to keep names readable, or strip console statements.
Clear size comparison
Before and after sizes plus percentage reduction shown instantly.
On-demand loading
The engine loads only when you minify, keeping initial load light.
When to Use It
Pre-release slimming
Compress scattered scripts and styles to reduce transfer size.
Investigate bundle bloat
Compare before and after sizes to spot duplicated code or huge comments.
Clean debug code
Remove console statements in one pass before pasting back into the project.
How to Use It
- 1Choose JavaScript or CSS.
- 2Paste the code to minify.
- 3Toggle mangling and console removal as needed.
- 4Click Minify and copy the result.
Frequently Asked Questions
Will mangling break my code?
Standard mangling does not change logic, but code that relies on variable names for reflection or string building may need attention.
Are comments removed?
Yes. Comments and redundant whitespace are stripped, that is the basic behaviour of minification.
