JavaScript Minifier

Paste JavaScript and get a smaller file that behaves the same. The minifier parses your code properly (it uses Terser), so it can remove dead code, shorten expressions and rename local variables safely, which regex-based minifiers cannot do. Everything runs in your browser; your code is not uploaded.

Open JavaScript Minifier

Where to find it

Every address below opens the same tool. The first address is the one to bookmark and share.

People also call this

What it's for: Shrink JavaScript with a real parser, not regex. Paste JavaScript and get a smaller file that behaves the same.

Use it from code

JavaScript Minifier runs on its page only and has no API. The Tools API covers the tools you can call from code.

Similar tools

All Developer Tools