How to export the HTML for an email template

Estimated 1 minute read

|

Updated Oct 16, 2026, 12:00 AM EST

Table of contents

You will learn

Learn how to export the HTML for an email designed in Klaviyo's drag-and-drop editor. You can copy a template's HTML to perform accessibility testing, edit the code to add custom elements, or import the template into another email marketing program.

Exporting a template built in Klaviyo's drag-and-drop editor and importing it back into Klaviyo is not recommended, as it can cause problems with the template's functionality. Learn how to import a custom HTML template.

Export the HTML for an email template

You need permission to edit templates to export their HTML.

  1. Navigate to Content > Templates.
  2. Select the Email: saved tab, then locate the template you want to export.
  3. Click the options menu (3 dots) on the template's card.
  4. Click Export.

Export template HTML

Export template HTML

  1. Click the copy icon in the modal that appears, then paste the HTML into a program of your choice.

HTML to copy

HTML to copy

Additional resources

Learn how to import a custom HTML template into Klaviyo. - Troubleshooting custom CSS, JavaScript, and HTML in Klaviyo

Learn how to troubleshoot custom code when importing a custom HTML template or building your own custom coded template.

Was this article helpful?

YesNo

Use this form only for article feedback. Learn how to contact support.

Explore more from Klaviyo

Community

Connect with peers, partners, and Klaviyo experts to find inspiration, share insights, and get answers to all of your questions.

Visit Community

Partners

Hire a Klaviyo-certified expert to help you with a specific task, or for ongoing marketing management.

Hire a partner

Support

Access support through your account.

Email support (free trial and paid accounts) Available 24/7

Chat/virtual assistance Availability varies by location and plan type

Log in