Jade / Pug to HTML Converter
Paste a Jade / Pug template and get the compiled HTML — tag shorthands, attribute lists, pipe text, and comments are all handled, with indentation controlled by you.
Last updated: May 27, 2026
Find this tool useful? Support the project to keep it free!
Buy me a coffeeWhat is Jade / Pug to HTML Converter?
Jade (now called Pug) is a templating language for HTML that uses indentation instead of closing tags, and provides shortcuts like `.classname` and `#id` to make markup terser. It was widely used in Node.js projects (Express was once shipped with Jade) and is still common in legacy codebases.
This tool reads Jade / Pug source and emits HTML by parsing the indentation-based tree, expanding the tag shorthands, merging classes from selectors and attribute lists, and recognising the most common Jade constructs: doctype, comments (`//` and `//-`), pipe text (`| text`), inline text, and attribute lists. It does not execute Jade expressions or includes — only the structural syntax.
How to Use Jade / Pug to HTML Converter
Paste Jade / Pug source into the left panel.
Pick the output indent (2 or 4 spaces).
Toggle the self-closing slash if you want XHTML-style output.
Copy the generated HTML.
Common Use Cases
- Compiling a Jade template to HTML for a static site or one-off snippet.
- Reviewing Pug output without running a Node.js build.
- Migrating Jade source files to plain HTML or React JSX (combine with HTML to JSX).
- Quick prototyping with terse markup that compiles to standard HTML.
Example Input and Output
A short Jade template becomes equivalent HTML.
h1.title Welcome
ul
li
a(href='/home') Home<h1 class="title">Welcome</h1>
<ul>
<li>
<a href="/home">Home</a>
</li>
</ul>Privacy
All Jade parsing and HTML generation happen in your browser. No content is sent to a server.
Round-trip
Use the HTML to Jade tool to go the other direction. Round-tripping is approximate because some Jade constructs (mixins, includes) have no HTML equivalent.
Frequently Asked Questions
Does this support Pug interpolation or mixins?
No. The tool focuses on static markup — Jade expressions, code blocks, mixins, and includes are not interpreted. Run a Pug build to evaluate those constructs.
What about block comments?
Lines starting with // become HTML comments. Lines starting with //- are suppressed (Pug "buffered" vs "unbuffered" comments). Multi-line indented block comments are wrapped in a single HTML comment.
Are tabs allowed for indentation?
Yes. Tabs are normalized to two-space indentation when computing the tree, so mixing tabs and spaces still works as long as each line is consistent.
Does this send my template anywhere?
No. All parsing happens locally in your browser.
Related Tools
HTML to Jade / Pug Converter
Convert HTML to Pug (formerly Jade) template syntax. Handles id/class shorthand, nested elements, attributes, void tags, and script/style blocks.
HTML Cleaner
Clean messy HTML by removing inline styles, scripts, comments, empty tags, Word markup, class and data attributes.
HTML Stripper
Remove HTML tags from text, preserving line breaks and decoding HTML entities. Instant plain-text extraction from HTML.
HTML to JSX Converter
Convert HTML to JSX for React — converts class to className, for to htmlFor, self-closes void elements, and converts inline styles to JSX objects.
Markdown to HTML Converter
Convert Markdown to clean, semantic HTML with live preview — GFM tables and task lists, heading IDs, a table of contents generator, four output modes, and HTML sanitization.
HTML Minifier
Compress HTML by removing whitespace, comments, and redundant attributes — with size reduction stats.

