Paste any JavaScript code and click Minify JS. The tool removes whitespace, comments, and shortens variable names where safe. All processing is 100% client-side — your code never leaves your browser.
JavaScript is one of the heaviest resources on web pages. Minifying JavaScript removes comments and unnecessary whitespace, which shrinks the file and reduces what the browser has to download. Google explicitly recommends minimizing JavaScript for better user experience.
Render-blocking JavaScript delays page interactivity. Smaller JS files mean faster Largest Contentful Paint (LCP) and Time to Interactive (TTI) — both Core Web Vitals signals that Google uses for ranking.