Preparing tool
How to use Code Minifier
- Pick JavaScript, CSS, HTML or JSON and paste your code.
- Choose options such as renaming variables or keeping licence comments.
- Copy or download the minified code. The size saved is shown.
What are the limits of Code Minifier?
Minifying changes the code's text, so test the result. Variable renaming only touches local names. JavaScript must be valid, modern syntax. Source maps are not made. Your code stays on your device.