HTML minifier
Remove comments and collapse whitespace in HTML.
Runs on our server
About this tool
Make HTML smaller by stripping comments and collapsing whitespace. Content inside pre, textarea, script and style is left untouched.
How to use it
- 1 Paste your HTML.
- 2 Select Minify.
- 3 Copy the result.
Questions
Do you store what I enter?
No. Your input is processed to give you the result and isn’t saved.
Is this tool free?
Yes. It’s free to use with no sign-up and no limits for normal use.
More in Code & markup
- CSS minifier Remove comments and unnecessary whitespace from CSS.
- JavaScript minifier Minify JavaScript onto one line with Terser: strips comments and spaces, shortens local names and simplifies code.
- SQL beautifier Format SQL so each clause starts on its own line.
- GitHub profile README generator New Build a GitHub profile README with stats, streak, tech stack icons, trophies and live preview.
- Markdown to HTML Convert Markdown (GitHub-flavoured) to HTML.
- BBCode to HTML Convert forum BBCode ([b], [url], [img]…) to HTML.