How HTML Formatting Works
AnyTool beautifies HTML with js-beautify, which reindents markup and also formats embedded CSS in <style> blocks and JavaScript in <script> blocks. A minify mode collapses whitespace and strips comments, reporting bytes saved measured as UTF-8 length. A live render preview is shown in a sandboxed iframe (no allow-scripts) so pasted HTML cannot execute. Large documents are formatted in a Web Worker. Everything runs in-browser with no runtime CDN, so markup is never uploaded.
- js-beautify reindents markup and embedded CSS/JS
- Minify mode with UTF-8 byte-savings stats
- Sandboxed iframe live preview (scripts disabled)
- Web Worker for large documents
- Bundled, no runtime CDN; no upload
