Compress HTML Code Online
This tool allows you to minify HTML online, quick and easy. It can be used by professionals and hobby or part-time developers alike.
Compressed and minified HTML files can execute commands and styles faster than big HTML files.The compressed html code is stripped of line breaks, comments, whitespace, and other redundant attributes and space wasting notions. Thus, only the functions that are needed to execute the code are kept intact. HTML versions supported include HTML5, HTML 4.01, and XHTML 1.0
Enter the HTML code or code snipped you want to minify in the form below. The form supports line numbers and syntax highlighting, and will allow you to toggle the options of removing comments and duplicated attributes or not. Once you chose the HTML version you want to compress and whether you want the resulting code displayed in a single line or not, hit "Format!" to start the process.
To receive a nicely formatted HTML code from a formerly minified code, you can use this free HTML formatter.