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
JSON to YAML
Convert JSON into clean, readable YAML instantly.
YAML to JSON
Convert YAML configuration into valid JSON.
JSON to CSV
Flatten a JSON array of objects into CSV rows.
CSV to JSON
Parse CSV with headers into a JSON array of objects.
JSON to XML
Convert JSON structures into nested XML markup.
HWB to HEX Converter
Convert an HWB color to HEX.
JSON to SQL
Turn a JSON array of objects into SQL INSERT statements.
CSV to XML
Convert CSV rows into structured XML records.