---
title: "How to export the HTML for an email template"
description: "Learn how to export the HTML for an email designed in Klaviyo's drag-and-drop editor. After downloading a message's HTML, you can use the HTML to perform accessibility testing, edit it to add custom elements and reimport it into Klaviyo, or import the message into another email marketing program."
canonical_url: "https://help.klaviyo.com/hc/en-us/articles/115005085167"
markdown_url: "https://help.klaviyo.com/hc/en-us/articles/115005085167.md"
locale: "en-us"
category: "Content"
section: "Advanced template design"
updated: "2026-10-25"
---

# How to export the HTML for an email template

## 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](https://help.klaviyo.com/hc/en-us/articles/115005254068.md).

## 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](https://cdn.sanity.io/images/6ct6b26e/help-center-prod/54cbc16e1d37660d8edff6f3c7102ec6de18cb36-828x1276.jpg?auto=format)

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



![HTML to copy](https://cdn.sanity.io/images/6ct6b26e/help-center-prod/8ccb23fb38d12f86af90db43ab7aff48757c2032-1718x372.jpg?auto=format)

## Additional resources

- [How to import a custom HTML template](https://help.klaviyo.com/hc/en-us/articles/115005254068.md)
  Learn how to import a custom HTML template into Klaviyo. 
- [Troubleshooting custom CSS, JavaScript, and HTML in Klaviyo](https://help.klaviyo.com/hc/en-us/articles/115005254488.md)
  Learn how to troubleshoot custom code when importing a custom HTML template or building your own custom coded template.
