HTML to Pug
Indentation-based Pug templates from HTML: #id and .class shorthand, attributes, inline #[tag] text, comments and script blocks.
Frequently asked questions
Is whitespace kept?
Text between inline tags is written with #[tag …] interpolation so spacing survives. Inside <pre> and <textarea> the text is kept exactly.
Is HTML to Pug free?
Yes. HTML to Pug is free to use. You get 3 free conversions a day without an account, and unlimited use when you sign in with Google.
Are my files uploaded?
No. The conversion runs inside your browser, so your files stay on your device and are never sent to our servers.
Does it work on mobile?
Yes. PixKaro works in Chrome, Safari, Edge and Firefox on Android, iPhone, Windows and Mac.