HTML Compressor

Your workspaceProcessed on your device
A few things to know.

Input can contain up to 1,000,000 UTF-16 code units. Local files must be valid UTF-8 and at most 4 MiB. Embedded script and style contents are preserved. Pasted HTML remains text in the workspace. Collapsing ordinary whitespace can affect pages styled with CSS white-space rules.

  1. Choose a fragment or a complete HTML document and supply the source.
  2. Compress with the default settings, then compare the input and output byte counts.
  3. Enable text whitespace or comment removal if appropriate, review the result and download compressed.html.