HTML ↔ Pug Converter
Convert static HTML and Pug in both directions with local text and file input.
html-pug-converterLOCAL WORKSPACE
Enabling local controls…
Pug output
How to use this tool
Choose a direction, then paste text or open a local UTF-8 file. Use explicit closing tags for non-void HTML elements. The converters accept nested tags, HTML5 doctypes, ordinary attributes, ID and class shorthand, and literal text. Explicit text whitespace and entity spelling are retained. Attributes are written with normalized quoting and entity escaping.
When not to use it
Pug accepts single-line attribute lists, inline and piped text, and quoted != text literals. HTML output is compact. Comments, filters, includes, mixins, control flow, script expressions, dot blocks, block expansion and active elements are outside this subset.