Examples & templates · Updated December 2026

Using custom HTML email templates in Klaviyo

Klaviyo's drag-and-drop editor covers most needs. Custom HTML makes sense when a brand needs layouts or details the editor can't produce, but it comes with trade-offs worth knowing first.

When custom HTML is worth it

Use HTML whenStick with drag-and-drop when
You need complex layouts or interactive elementsLayouts are standard blocks and columns
A developer will maintain the codeMarketers build most emails themselves
Brand rules need pixel-level controlSpeed of production matters more
You are migrating proven templates from another platformYou are starting fresh

Importing a template

Klaviyo's help article on importing a custom HTML template covers uploading code or a zip file with images. If your team needs to edit content without code, build a hybrid template, which marks regions as editable in the drag-and-drop editor.

Code that holds up in every inbox

  • Use tables for layout and inline styles, as many email clients ignores modern CSS.
  • Keep the width around 600 pixels and test on mobile first.
  • Add real text, not just images, with alt text on every image.
  • Plan for dark mode, which can invert colours unexpectedly.
  • Keep total size small so Gmail does not clip the message.

Personalisation still works

Template tags, conditional blocks and data feeds all work inside custom code, so HTML templates don't have to be static. Test with real profiles in preview before scheduling, as a broken tag in raw code is harder to spot than in the editor.

Keep the library manageable

One or two HTML masters plus a solid drag-and-drop template usually covers everything. Our guides to template libraries and email design explains how we structure them so the team isn't waiting on a developer for every send.

Questions people ask

Can I use my own HTML templates in Klaviyo?

Yes. You can import a custom HTML template or paste code into the HTML editor.

Can a custom HTML template still be edited by marketers?

With a hybrid template, yes. Developers define editable regions so the team can change content without touching code.

Do Klaviyo template tags work in custom HTML?

Yes. Personalisation tags, product blocks via feeds and conditional logic all work in HTML templates.

Should I build all my emails in custom HTML?

Usually not. A well built drag-and-drop master template is easier for the whole team to work with.

Keep reading

Bring us the ambition. We’ll build the system behind it.