This site has been acquired by
(Attention! API endpoint has changed)

CSS Minifier

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


Thanks to Jeremy Cron for contributing this example.

require "rest_client"

task :minify do
  css_file = "public/stylesheets/main.css"
  css_min_file = "public/stylesheets/min/main.min.css"
  response = "", {:input =>}, "w").write(response)

Click on the language of your choice to see an example: