Minify your JavaScript

Online JavaScript Minifier/Compressor. Free! Provides an API. Simple Quick and Fast.

Written and hosted by Andrew Chilton (@andychilton).

Input JavaScript

Minified Output

Language Examples

Click on the language of your choice:

wget Curl Node.js Python Java Ruby Perl PHP C# Rust Kotlin

More Languages

I'd love to add more examples in your favourite programming language, so feel free to send them my way. Email andychilton at that gmail place in the sky or tweet to me @andychilton.

API - General

To minify/compress your JavaScript perform a POST request to with the input parameter set to the JavaScript you want to minify.


To see implementations in other languages see the Language Examples pages above.


Many of our users have made plugins for various editors which are listed on the plugins page.


Lots of people are making little programs to use JavaScript Minifier - see the programs page.