How to Use the HTML Minifier Basic: Steps and a Worked Example

By 1 min read

Shrink HTML by removing comments and whitespace between tags. This guide shows what to enter, a worked example, and the limits to keep in mind. The HTML Minifier Basic tool is free, needs no account and runs in your browser.

What you need

  • HTML

Step by step

  1. Open the HTML Minifier Basic tool.
  2. Fill in HTML.
  3. Read the result, which updates as soon as the inputs change.

Worked example

the tool returns:

<div><h1>Title</h1><p>Hello world</p></div>

How it works

Paste HTML. Comments, spaces between tags and repeated spaces are removed. Content inside

 is not protected.

Things to keep in mind

Check your inputs, units and any local rules before you rely on the result.

If this is not quite what you need, try CSS Minifier (Basic), Markdown to HTML Basic or HTML Entity Decoder.

More from the blog