Utilities

Free HTML Minifier

HTML Minifier — 100% free, unlimited, no sign-up cost.

Paste HTML and choose Minify or Beautify. Minifying removes comments (conditional comments kept if you keep comments), collapses whitespace while preserving spacing between inline tags, minifies <style> blocks and leaves <pre>, <textarea> and <script> untouched. You see the size before and after, and the gzipped size.