HTML Formatter & Minifier
Local ProcessingPretty-print HTML or minify it by removing whitespace and comments.
How It Works & Processing Standards
Pretty-print HTML or minify it by removing whitespace and comments.
Tool processing runs in your browser. If you create a calculator or conversion share link, its values are included in the URL. See the privacy policy for account, analytics and advertising data.
Current Limits
- Maximum input length: 100,000 characters
Choose format or minify under "Task". Use it to understand one-line HTML or to shrink HTML for emails and widgets.
What You Can Do
- Format
- One tag per line, indented by depth.
- Minify
- Removes whitespace between tags and <!-- --> comments.
How to Use HTML Formatter & Minifier
- 1Choose a taskFormat or minify.
- 2Paste HTMLPaste the HTML.
- 3CopyCopy the result.
Examples
Format
Input: <div><p>안녕</p><ul><li>하나</li></ul></div>
Result: <div>
<p>
안녕
</p>
<ul>
<li>
하나
</li>
</ul>
</div>
Minify
Input: <div>
<!-- 메모 -->
<p>안녕</p>
</div>
Result: <div><p>안녕</p></div>
Common Use Cases
- Understanding the structure of copied HTML
- Shrinking email templates or embed code
Frequently Asked Questions (FAQ)
Can formatting change how the page looks?
Line breaks between text and tags can add spaces between inline elements such as <span> or <a>. Ship the original or the minified version.
