</> hexnook

HTML Formatter

Minify HTML for production or beautify it for readability — with a live before/after size comparison.

Input

Output

Output will appear here…

Frequently asked questions

Yes — HTML comments are removed during minification, along with all redundant whitespace between and inside tags, to produce the smallest valid output. Content inside <pre>, <textarea>, <script>, and <style> tags is left untouched so nothing you see or run changes.