HTML 格式化
使用统一缩进美化 HTML,同时保持内联元素和空元素的正确性。
输入
结果
使用方法
How to format HTML
Paste HTML and press Format. The tool indents nested tags and preserves inline text flow.
- Paste HTML into the input editor.
- Press Format.
- Copy the beautified markup.
常见问题
Does it preserve my content?
Yes. Reformatting only changes whitespace and never alters tags or text values.
Are void elements handled?
Void elements such as br and img are kept self contained and not indented as containers.