Compacts HTML so that web pages are 20% smaller and hence 20% faster. It does this by removing all unnecessary white space. To fluff files up again, I suggest using SlickEdit beautify. The file will render on browsers exactly as they did before. Any
 sections are left intact. No comments
are removed. See http://mindprod.com/projects/compactor.html
for how it works.
NOTE THE COMPACTOR JUST COMPACTS YOUR HTML. IT DOES NOT
FLUFF UP AGAIN.
To install, Extract the zip download with WinZip, available from
http://www.winzip.com (or similar unzip utility) into any
directory you please, often C:\ -- ticking off the "user
folder names" option. To run as an application, type:
java.exe -jar C:\com\mindprod\compactor\compactor.jar x.html y.html
adjusting as necessary to account for where the jar file is.
Put files and directories on command line you want to
compact. -s means recursively include all subdirectories for
everything to the right of -s.
You can also embed it in your own programs, by calling the
Compactor.compactString or Compactor.compactFile methods
like this:
import  com.mindprod.compactor;
...
Compactor compactor = new Compactor();
compactor.compactFile( true, new File("x.html") );
String result = compactor.compactString( big, "from file x.html" );