How to Use the HTML Minifier Basic: Steps and a Worked Example
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
- Open the HTML Minifier Basic tool.
- Fill in HTML.
- 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.
Related tools
If this is not quite what you need, try CSS Minifier (Basic), Markdown to HTML Basic or HTML Entity Decoder.