Beautify messy HTML with proper indentation or strip all whitespace for the smallest possible output.
Beautify parses the raw HTML text with a regex-based tokenizer and re-indents block-level elements (div, section, article, header, footer, nav, ul, ol, li, table, tr, td, th, p, h1–h6, etc.) while preserving inline elements and text nodes.
Minify removes all whitespace between tags and collapses runs of whitespace inside text nodes, producing the smallest possible output without changing document semantics.
Both operations are entirely client-side. Inline <script> and <style> blocks are passed through unchanged.