Format / Beautify re-indents HTML using js-beautify, including inline <script> and <style> blocks, with 2 spaces, 4 spaces or tabs, and optional line wrapping. Content inside <pre>, <textarea> and <code> is left as written.

Minify is a conservative hand-written minifier. It collapses runs of whitespace in text to a single space, removes whitespace next to block-level tags where browsers ignore it anyway, tidies whitespace inside tags, and optionally removes comments while keeping IE conditional comments. The contents of <pre>, <textarea>, <script> and <style> are kept byte for byte. Whitespace between inline elements, like the space in <b>a</b> <i>b</i>, is kept as a single space because removing it would change how the page renders.

It does not remove optional closing tags, attribute quotes or default attributes. Those savings are small after gzip and easy to get wrong. The formatter library loads on first use; your HTML is processed locally and never uploaded.