HTML Minifier
Minify HTML by removing comments, collapsing whitespace, and dropping whitespace that's insignificant at block-element boundaries — while preserving significant inline whitespace and the verbatim contents of <pre>, <textarea>, <script>, and <style>. The reverse of the HTML formatter. Optionally unquote safe attribute values. Everything runs in your browser; nothing is uploaded.
Whitespace between two inline elements (e.g. <span>a</span> <span>b</span>) is preserved because it renders. Whitespace at block boundaries (after an opening or before a closing block tag, or between two block elements) is dropped. <pre>/<textarea> keep their whitespace exactly; <script>/<style> are left untouched (minify their contents with the CSS/JS minifiers instead). No network requests are made.