Minify your HTML

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

w3tees

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

Input HTML

Minified Output

Language Examples

Click on the language of your choice:

wget Curl Node.js Python 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.

API - General

To minify/compress your HTML perform a POST request to http://html-minifier.com/raw with the input parameter set to the HTML you want to minify.

POST http://html-minifier.com/raw?input=...

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

Plugins

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

Programs

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

(Ends)