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

HTML Minifier

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


# minifying some HTML to stdout
curl -X POST -s --data-urlencode 'input=p { color : red; }'

# minifying a HTML file (e.g. index.html -> html/index.html)
curl -X POST -s --data-urlencode 'input@index.html' > html/index.html


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