Shrink your code so your pages load faster.
Pick JavaScript, CSS or HTML.
Paste it in, or open a file.
See how much smaller it got, then copy it or download it.
No. It is minified in your browser, so it never leaves your device.
It removes comments, spaces and line breaks, and can shorten variable names and combine rules, so the file is smaller and loads faster. It does the same job as the original.
Minifiers are careful, but always test the result. For JavaScript, turn off Shorten variable names if your code depends on function or variable names.
The code has a mistake the minifier cannot read past, such as a missing bracket. The message shows the line and column.
No, by default. Turn on Keep important comments to keep licence notes (those starting with /*! or @license).
Up to 2 MB of code at a time.