A JavaScript minifier makes JS code smaller by removing what the engine doesn't need: comments, line breaks, indentation and spaces around operators. Paste your code and this tool returns the minified version as you type, with the original and minified character counts and the percentage saved. It runs in your browser.
It is a whitespace-and-comment minifier. It does not rename variables, remove dead code or rewrite expressions the way Terser or esbuild do, so the saving is smaller than a full build tool's, but the output stays readable enough to debug.
Limits: the tool uses text rules, not a JavaScript parser. Anything that looks like a comment is removed even inside a string, such as the // in "https://example.com", and code that relies on line breaks instead of semicolons can break once lines are joined. Test the output before you deploy it, and use Terser or esbuild in your build for production bundles.