Minify HTML
Minify parsed HTML by removing comments and collapsing HTML whitespace.
Local processing · Nothing is uploaded · 1 MB input limit
Input & settings
Ready. Enter your input to begin.
How to use this tool
Paste your source, choose the supported options, then process. Inspect or download the complete result.
Limits and behavior
Whitespace inside pre, textarea, script and style is preserved. HTML5 parsing can normalize malformed source and add implied document elements; test layout before deployment. Maximum total input 1 MB, output 3 MB, JSON nesting 64 levels. Processing stays in your browser worker. Input is limited to 1 MB and output to 3 MB. No input content is saved by CraftAI.
Compact HTML markup
Minify supported HTML content by reducing formatting overhead and removable comments.
Can HTML minification change rendering?
Whitespace and comment removal can affect some pages. Test the result before deploying it.
Related tools: format html · minify css