Developer tool
HTML Minifier
Conservatively compact plain HTML attribute quoting while preserving text whitespace, comments, scripts and styles. Process locally in a time-limited worker.
Format and inspect source safely
- Paste valid plain source in the input editor.
- Process it locally; the parser runs in a worker with a 15-second limit.
- Review the result and test it in your project before copying or downloading.
Example and assumptions
Text in pre and textarea elements is not aggressively whitespace-compressed. HTML minification intentionally keeps comments and embedded code.
Limits
Up to 200,000 characters. Standard plain source only, not arbitrary template languages. Embedded language formatting is disabled. HTML minification is conservative and may offer little size reduction. Formatting is not validation of application behavior, security or framework hydration. Source never executes in this tool.