How to Minify HTML Without Breaking the Page
Source HTML is full of indentation, line breaks and comments that help you and do nothing for the browser. The HTML Minifier removes comments and collapses whitespace, and it can shrink the CSS and JavaScript inside the page in the same pass. It then shows how many bytes you saved and an estimate of the gzipped size. It runs in your browser, so your markup is not uploaded.