HTML Beautifier

Pretty-print HTML - including embedded CSS and JavaScript - or compact it

0 chars ยท 0 lines
0 chars

Notes

The beautifier understands full HTML documents and fragments. Attributes are kept exactly as written, while <pre>, <script>, and <style> contents are preserved verbatim with consistent indentation.

Compact strips indentation and collapses whitespace between tags - ideal for shipping smaller assets. Inline text spacing between words is preserved.