HTML Viewer
Format, minify, and adjust indentation for HTML, then preview it safely inside a sandboxed iframe.
Sandboxed preview
Tips
- The preview iframe is sandboxed with scripts allowed but isolated from the parent page (no same-origin).
- Formatting re-indents tags with your chosen indent size; minify removes comments and extra spaces.
- If whitespace-sensitive content looks off, disable whitespace collapsing before formatting.