How to use the HTML Minifier Basic
Paste HTML. Comments, spaces between tags and repeated spaces are removed. Content inside <pre> is not protected.
Examples
- With the default values
<div><h1>Title</h1><p>Hello world</p></div>
Limitations and assumptions
Confirm assumptions, units and applicable local rules before relying on results. Detailed content, accessibility and edge-case review remains ongoing.
Frequently asked questions
What does the HTML Minifier Basic do?
Shrink HTML by removing comments and whitespace between tags.
How does the HTML Minifier Basic work?
Paste HTML. Comments, spaces between tags and repeated spaces are removed. Content inside <pre> is not protected.
What should I keep in mind when using the HTML Minifier Basic?
Confirm assumptions, units and applicable local rules before relying on results.
Can I see an example of the HTML Minifier Basic?
Example: “<div> / <!-- hero --> / <h1>Title</h1> / <p>Hello world</p> / </div>” gives “<div><h1>Title</h1><p>Hello world</p></div>”. A slash marks a line break.
Is the HTML Minifier Basic free to use?
Yes. It is free, needs no account and runs in your browser.