What is a JS minifier?
A JS minifier strips comments and collapses whitespace in JavaScript so the file is smaller and downloads faster — without changing what it does. This JavaScript minifier works online and instantly, no signup, and shows how many bytes you saved.
Minify or unminify JavaScript
Use Minify for production (smaller files, faster load) and Unminify to unminify js — re-indenting minified code back into readable form. The built-in javascript beautifiermakes it easy to debug or read a minified file you didn't write.
Why JS minification matters
Smaller JavaScript downloads and parses faster, which improves page speed and Core Web Vitals. JavaScript minification is one of the simplest performance wins — run it on inline snippets and small scripts before you ship.
How to use the JS minifier
- Pick Minify or Unminify.
- Paste your JavaScript.
- Click the button and copy the result.
More performance tools
Pair this with our CSS Minifier, HTML Minifier, Page Speed Test and the full free SEO tools suite.