Minify your JavaScript

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

Written and hosted by Andrew Chilton (@andychilton).


# minifying some JavaScript
curl -X POST -s --data-urlencode 'input=console.log( 1 );'

# minifying a JS file (e.g. ready.js -> ready.min.js)
curl -X POST -s --data-urlencode 'input@ready.js' > ready.min.js

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.