Pug to HTML
Paste Pug template code below.
Paste Pug template code and compile it into plain HTML. Supports tags, #id and .class shorthand, attributes in parentheses, text pipes and indentation based nesting.
Paste Pug template code below.
Each Pug line is parsed for a tag name, #id and .class shorthands, an optional attribute list in parentheses, and trailing text. Indentation builds the element tree, and the tree is serialized back to HTML with proper nesting and escaped text.
Compiling Pug to HTML lets you preview a template without installing Node or the Pug package. It is handy for checking a snippet from documentation, a tutorial, or a teammate before dropping it into a real project.