JavaScript Minifier
Compress JavaScript files with zero side effects — removes whitespace, renames local variables, and shrinks your JS for faster page loads.
Get notified the day we launch. No spam, ever.
What to expect
Built for developers
Safe minification with no behavior changes — local variable renaming and whitespace removal without touching eval or globals.
Runs client-side. Your data never leaves your browser.
No ads, no trackers, no popups. Pure focus.
Paste code or upload files. Both modes supported.
Share output with teammates via a permanent link.
Adapts to your system preference automatically.
Fully responsive. Works on any screen size.
More tools coming
Related tools
OpenFormatter is launching with 30+ tools on day one.
About this tool
OpenFormatter's JavaScript Minifier compresses JS files by removing all unnecessary whitespace, indentation, and line breaks, replacing local variable names with shorter ones, and substituting references correctly. Does not modify eval statements. Safe for production use — no behavioral side effects. Shows original vs minified file size comparison and compression ratio.