i♥Tools
Utility

HTML Minifier

Minify HTML from pasted code, a public URL or upload/drag-drop. Preview URL/file source first, then see the minified HTML below and download it as a new file.

About HTML Minifier

Minify HTML from pasted code, a public URL or upload/drag-drop. Preview URL/file source first, then see the minified HTML below and download it as a new file.

Key Features

  • Processes a source file through a focused workflow.
  • Includes a configurable Public page URL control.
  • Includes a configurable Remove HTML comments control.
  • Includes a configurable Collapse whitespace control.
  • Includes a configurable Remove empty space control.
  • Includes a configurable Reduce boolean attributes control.

How to Use HTML Minifier

  1. Select or drag and drop the source file you want to process.
  2. Choose the settings you need, including Public page URL, Remove HTML comments, Collapse whitespace, Remove empty space.
  3. Run HTML Minifier to process the requested operation.
  4. Review the generated result and use the available download or result controls when provided.

Frequently Asked Questions

What does HTML Minifier do?

Minify HTML from pasted code, a public URL or upload/drag-drop. Preview URL/file source first, then see the minified HTML below and download it as a new file.

What input does HTML Minifier use?

It works with a source file.

What can I configure in HTML Minifier?

Available controls include Public page URL, Remove HTML comments, Collapse whitespace, Remove empty space, Reduce boolean attributes.

Minify HTML for compact delivery while keeping a readable source version

HTML minification removes unnecessary formatting such as selected whitespace and comments where doing so does not change intended markup behavior.

Whitespace can be significant inside some elements, scripts, templates and inline content, so minification should be tested.

Useful HTML-minification workflows

  • Create smaller production markup.
  • Compare formatted and compact HTML.
  • Reduce source presentation overhead.

What to verify

  • Keep the readable source.
  • Test whitespace-sensitive content.
  • Validate important pages after minification.

Before relying on the result

Keep the source until you have checked the generated output. The source and destination formats can represent structure, layout and metadata differently, so important documents should be reviewed in the application or device where the result will actually be used.