Minify your JavaScript

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

w3tees

Support JavaScript Minifier by purchasing a w3tees t-shirt. This site is also run by us.

Wget

# minifying some JavaScript
wget --post-data='input=console.log( 1 );' --output-document=- https://javascript-minifier.com/raw

# minifying a JS file (e.g. ready.js -> ready.min.js)
wget --post-data="input=`cat ready.js`" --output-document=ready.min.js https://javascript-minifier.com/raw

Language Examples

Click on the language of your choice:

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

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.