Report

Help us improve this tool

Pug to HTML Converter

Compile Pug templates to HTML in the browser with live syntax feedback.

O M T

Compile Pug templates to HTML

Pug (formerly Jade) compresses HTML structure with indentation-based syntax. Paste a template to compile it to HTML locally, which is handy when migrating legacy Pug views or prototyping markup before wiring a build step.

Working from Markdown instead? Try the Markdown to Pug Converter. For finished pages, pair this tool with the HTML Beautifier.

Frequently Asked Questions

Can I pass variables to the template?

The demo supplies a sample items array for each loops. Compilation runs in your browser and supports common indentation syntax, attributes, and simple each / = expressions. Extends, includes, mixins, and filters are not supported.

What happens when syntax is invalid?

The compiler surfaces the Pug parser error message so you can fix indentation or tag names without leaving the page.

Is compilation done on a server?

No. The Pug compiler runs in your browser; templates are not uploaded.