JS Minifier & Beautifier
This JS minifier uses Terser, the same minifier used by most website build tools. Modern syntax and modules work. If your code has a syntax error, you see the exact line and column. Or switch to Beautify to read minified code.
🔒 Your files are processed on your device and are never uploaded.
How to use
- 1Paste your JavaScript or open a .js file.
- 2Choose the options, like shortening variable names or removing console.log.
- 3Copy or download the .min.js file.
Frequently asked questions
Does it support TypeScript or JSX?
No. Minify the JavaScript that your build produces. TypeScript types and JSX must be compiled first.
Will it change how my code works?
No. Terser only makes safe changes. Top-level names in modules are kept so imports and exports still work.
Is my data sent anywhere?
No. Everything runs in your browser, so your text and code stay on your device.
More free tools
Meta Tag GeneratorCreate SEO and social meta tags with live previews.On-Page SEO CheckerCheck a page's HTML for 20+ SEO problems.Robots.txt Generator & TesterCreate a robots.txt file and test URLs against it.XML Sitemap GeneratorMake a sitemap.xml from a list of your pages.Schema Markup Generator (JSON-LD)Create structured data for rich results in Google.Google SERP PreviewSee how your page will look in Google results.