Minify JS
Quickly strip comments and whitespace from JavaScript to estimate and reduce its size. Paste your code and the minified version appears instantly with a live size-saved percentage. This is a lightweight minifier for snippets and quick checks, for production builds, use a full compiler like Terser or esbuild.
function calculateSum(a,b){const result=a+b;return result;}const x=10;const y=20;console.log(calculateSum(x,y));
This is a basic minifier. For production, use a full minifier like Terser or esbuild.
How was this tool?
Your feedback helps us improve Minify JS.
