Skip to content
ZeroServer.tools

HTML to Pug Converter

Convert HTML to Pug (formerly Jade) template syntax — indentation-based, no closing tags.

What is Pug and how does conversion work?

Pug (formerly Jade) is a templating engine for Node.js that uses indentation instead of closing tags, making it concise and readable. Tags are written without angle brackets (div, p), IDs with #, and classes with . syntax. Attributes go in parentheses: a(href="/about"). Text content follows the tag with a | prefix on its own line.

For Ruby templates, see the HTML to HAML Converter. For React, try HTML to JSX.

Private & free — this tool runs entirely in your browser.

Recommended: IndieKit Ship your Next.js startup in days.affiliate

Related Converters tools