How To Export Hubspot Email As Html

If you are a HubSpot user, you may need to export your emails as HTML at some point. This can be useful if you want to make changes to the email or use it outside of HubSpot. In this article, I will provide you with instructions on how to export your HubSpot emails as HTML.

Step 1: Accessing the Email in HubSpot

To begin, log in to your HubSpot account and navigate to the Marketing Hub. From the left sidebar, select ‘Email’ and choose ‘Emails’ from the dropdown menu. Find the email you want to export and click on it to open it in the email editor.

Step 2: Opening the Email Code

Once you have the email open in the editor, click on the ‘Actions’ dropdown in the top right corner. From the menu, choose ‘Other actions’ and then select ‘View HTML’.

Step 3: Copying the HTML Code

A new window will open displaying the raw HTML code of your email. To export the HTML, simply select all of the code and copy it to your clipboard. You can do this by pressing ‘Ctrl + A’ to select all and then ‘Ctrl + C’ to copy.

Step 4: Saving the HTML File

Now that you have the HTML code copied, you can save it as an HTML file on your computer. Open a text editor or an HTML editor, such as Notepad or Visual Studio Code. Paste the copied code into a new file and save it with a .html extension. Choose a location on your computer where you want to save the file.

Step 5: Testing the Exported HTML

To ensure that the exported HTML file is working correctly, you can test it by opening it in a web browser. Right-click on the file and select ‘Open with’ and choose a web browser such as Google Chrome or Mozilla Firefox. The email should render properly in the browser, allowing you to see how it will appear to your recipients.


Exporting HubSpot emails as HTML is a straightforward process that allows you to have more control over your email templates. By following the steps outlined in this article, you will be able to easily export your emails and make any necessary customizations outside of HubSpot. Remember to always test the exported file in a web browser to ensure it appears as intended. Happy exporting!