HTML Minifier
Make an HTML document smaller by removing comments and the whitespace between tags. Useful for email templates, embedded snippets and static pages where every kilobyte is sent on each request.
- Limits No daily limit on the page
- Where it runs Runs in your browser; nothing is uploaded.
- Cost Free, with the limits above. No account needed.
Where to find it
Every address below opens the same tool. The first address is the one to bookmark and share.
- htmlminify.openvibe.toolsEasiest to remember
- html-minifier.openvibe.toolsSearch-friendly address
- minifyhtml.openvibe.toolsRedirects here
- htmlmin.openvibe.toolsRedirects here
- html-compressor.openvibe.toolsRedirects here
People also call this
What it's for: Remove comments and whitespace from HTML. Make an HTML document smaller by removing comments and the whitespace between tags.
What trips people up: Can minifying break my layout? Whitespace between inline elements can be meaningful. The minifier collapses it to a single space rather than removing it, which keeps inline text spacing correct.
- html minifier
- minify html
- html compressor online
- compress html
- minify web page
Use it from code
POST https://openvibe.tools/api/v1/tools/htmlminify/run- No account needed: anonymous calls run on the lowest quota tier; a token with
tools.tool.runraises it. - It answers with the result.
curl -X POST https://openvibe.tools/api/v1/tools/htmlminify/run \
-H 'Content-Type: application/json' \
-d '{"input":{"text":"<!-- c -->\n<div>\n <p>Hi</p>\n</div>"}}'
Inputs: JSON Schema · OpenAPI · from JavaScript: tools.run("htmlminify", …) in openvibe-sdk · How the API works
Similar tools
All Developer ToolsOne account works on every site. Open source and community-run.