Minification should happen at build time for any JavaScript that ships to users. Every kilobyte of JS the browser downloads, parses, and compiles adds to Time to Interactive (TTI) — one of Google's Core Web Vitals. A 100 KB script that minifies to 60 KB loads and executes noticeably faster, especially on mobile networks.
Never minify your working source files. Keep the readable version for development and run minification as part of your production build. Tools like webpack, Vite, esbuild, and Rollup all minify automatically when building for production.
For one-off scripts, third-party snippets, or legacy code without a build pipeline, this online minifier gives you instant output without any configuration.