HTML 格式化与美化
在左侧粘贴杂乱或压缩的 HTML,右侧立即得到带有正确缩进的整洁版本。
功能特性
Auto-indent HTML tags
Customizable indentation
Preserve or remove comments
Syntax highlighting
使用方法
1. 把 HTML 标记粘贴到左侧的输入框。
2. 点击「格式化」按正确缩进美化代码。
3. 点击「压缩」去除所有空白。
4. 在右侧复制或下载结果。
常见问题
How does HTML formatting work?
The formatter parses your HTML and re-indents nested tags to make the code more readable.