Actually shrinking the code you paste
Pick a code type, paste the original, and you get the result with comments and redundant whitespace genuinely removed, alongside the before and after byte counts and the reduction. Nothing is filled in from an average saving: the figure is measured on your own code, so the per-file variation stays visible.
The point of this tool is that it deletes conservatively. Mistaking a pair of slashes inside a string or a regex literal for a comment breaks code silently, so every literal is lifted out and preserved verbatim before the surrounding whitespace is tidied. JavaScript keeps its line breaks by default, which stops code relying on automatic semicolon insertion from breaking when lines are merged. As of October 2026 removing line breaks is offered only as an opt-in.
Variable names are not shortened, syntax is not rewritten and dead code is not removed, so this is not a complete minifier and the savings run lower than a dedicated tool. Compressed transfer size and download time are out of scope.
Frequently Asked Questions
This tool removes only comments and whitespace; it does not shorten variable names or rewrite syntax. Dedicated tools that do go further, at the cost of output you can no longer read. Keeping it conservative here means you can see exactly what was removed.
They are kept as they are rather than read as a comment. Strings, template literals and regex literals are lifted out before whitespace is tidied and put back character for character, so the slashes in a URL are safe too.
JavaScript inserts a semicolon at a line break under certain rules, so merging lines in code that omits semicolons can change how it behaves. That is why it is an opt-in choice.