JS Minifier
Minify JavaScript code to reduce file size
Original Size
Settings
What is JS Minifier?
JS Minifier compresses JavaScript code by removing whitespace, comments, and shortening variable names using the Terser engine. This reduces file size for faster page loads and lower bandwidth costs while preserving the code's functionality.
How to use
- Paste your JavaScript code into the input editor, or upload a .js file.
- Pick your minification options: toggle mangling (shortens variable names), compression, and whether to strip out console.log calls.
- Click Minify to process the code. Check the size reduction, then download the minified file or copy it to your clipboard.
Result
You have a 45KB utility library with extensive comments and long variable names. Paste it in, enable mangling and compression, and get a 12KB output — a 73% reduction ready for production deployment.
Related Tools
Structured Data Generator
Generate JSON-LD schema markup for SEO
Webpage to PDF
Capture a webpage as a PDF
Privacy Policy Generator
Generate a privacy policy for your site
Terms of Service Generator
Generate a terms of service document
Cookie Consent Generator
Generate cookie consent banner code
CSS Minifier
Minify CSS code to reduce file size