HTML Formatter
Beautify or minify HTML with tag indentation and size statistics
格式化选项
输入 HTML 代码
美化结果
About this tool
The HTML formatter beautifies or minifies markup:
- Beautify: indent by nesting level for a clear structure
- Minify: remove whitespace and newlines while preserving the content of pre and textarea
- Indentation: 2 spaces, 4 spaces or a tab
- Size report: original characters, result characters and the reduction
When to use it
- Format messy HTML
- Shrink an HTML page
- Check the document structure
- Improve page performance
Everything runs locally in the browser.