About the JavaScript Minifier
Reduce JavaScript size for production with Terser, the minifier used by most modern bundlers. Choose whether to mangle local variable names and remove console.* statements; syntax errors are reported with line and column.
Your data is processed in the browser and never sent to a server, so it is safe to paste payloads that contain tokens or personal data.
How to use it
- Paste JavaScript or open a .js file.
- Set mangling and console options.
- Click Minify and copy or download the result.
Good to know
- Terser loads on demand (~300 KB), so the first run takes a moment.
- Licence comments starting with /*! are preserved.
- TypeScript and JSX must be compiled to JavaScript first.