HTML Compressor
Drop a single HTML file here to automatically select the smallest available compression format and generate a self-extracting HTML file without modifying the original HTML.
Drop an .html file here
or click to choose a file
Ready.
Safe never changes the original HTML.
Experimental and Clean Only generally preserve text in the HTML body and whitespace between tags so that displayed content remains unchanged, while tidying CSS, JavaScript, and comments.
Because cleanup is performed mechanically, unusual code may behave differently. Always check the appearance and functionality after cleanup.
JavaScript // line comments are protected so they are not joined with following code on the same line.