Optimize html files - Version 1.2 Optimize html file by reducing its size, choose from various options. Htmloptim reduces the size of html file by optimizing its content. This is done by removing unnecessary characters like spaces, tabs, line feeds or blank lines. Use the -h option to see all command arguments the command accepts.