HTML Formatter / Minifier
Tool guideFormat, beautify, and minify HTML
Input: This tool processes input in your browser. Check in Network (opens in a new tab)
Mode:
Indent:
Tool guide
Back to workspaceFormat HTML with Prettier for consistent, beautiful markup or minify to reduce file size. Configurable 2/4-space indentation. Minifier removes comments and collapses whitespace. All processing runs in your browser.