BigBigTools

HTML minifier

Remove HTML comments and normalize ordinary text whitespace; preserve pre, textarea, script and style content.

About this tool

HTML minifier Remove HTML comments and normalize ordinary text whitespace; preserve pre, textarea, script and style content. Enter content or choose a local file on the left, adjust the available settings, and run the tool. Results or previews appear on the right. Use the copy or download actions provided after processing. Built-in input example: <section> <h1>Hello</h1> <!-- comment --> <p> World </p> </section> Uses the browser HTML parser, which normalizes structure. Inline scripts and styles are not minified.

Frequently asked questions

What does this tool do?
Remove HTML comments and normalize ordinary text whitespace; preserve pre, textarea, script and style content.
How do I use this tool?
Enter content or choose a local file on the left, adjust the available settings, and run the tool. Results or previews appear on the right. Use the copy or download actions provided after processing.
Which settings can I change?
There are no extra settings. Supply data using the input area shown on the page.
What should I check before using it?
Uses the browser HTML parser, which normalizes structure. Inline scripts and styles are not minified.
Where is my input sent?
Input is processed in the current browser and is not automatically uploaded by this tool. Copying requires browser permission; select and copy the result manually if needed.