How to export HTML emails from Figma to HubSpot using Emailify
Follow along with this step by step Figma tutorial video.
Steps
- Install Emailify from the Figma Community and run it from Plugins in your Figma file.
- Open the Emailify export panel, change the export destination from downloading locally to HubSpot Marketing Hub, and paste in your HubSpot API key.
- In your email design, add the HubSpot platform-specific footer template from the Footer category so the required unsubscribe, web, and company details are included.
- Click Upload to HubSpot to generate the HTML, upload the images, and send the template to HubSpot.
- In HubSpot, go to Marketing > Email > Create email > Regular, then open the Custom tab to find the uploaded template and preview it.
- To inspect the uploaded file, go to Marketing > Files and templates > Design Tools and look for the automatically created emailify folder and HTML file.

Published
Used in this video
Emailify
ăĄăŒă«
Stop hand-coding HTML emails.
Design responsive emails in Figma and export production-ready HTML for popular email platforms.
135k+ installs
Video Transcript
Today Iâm going to be showing you how to export your HTML emails directly from Figma into your HubSpot account and weâre going to be doing this by installing a Figma plugin called Emailify.
If you havenât already done so, you can go to the Figma Community, search for the word âEmailifyâ; and under the âPluginsâ tab youâll see âEmailifyâ pop-up. You just need to click on the âInstallâ button on the right-hand side, and then we can jump back into our Figma file.
To run the Figma plugin you just right-click anywhere, go down to âPluginsâ and then click on âEmailifyâ, and thatâll run the Figma plugin that we just installed. Iâve already got a design that I came up with using the Emailify Figma plugin, so if you havenât already done that we have another Figma tutorial on our YouTube channel that will show you how to design the email using the Emailify Figma plugin, but for this Figma tutorial Iâm just going to assume that youâve already designed your email and just want to go ahead and export it from Figma to HubSpot.
Iâm going to do that now by starting to click on the âExportâ button; Iâm just going to click on the âExportâ button in the Figma plugin header, and by default itâs going to try to export the emails as an HTML package that are going to get downloaded to your computer; thatâs normally fine, but today we want to get them into HubSpot automatically. What we have to do is click on this select box, and instead of downloading to our computer, we want to upload it to a platform; and for todayâs Figma tutorial weâre going to use HubSpot. Iâm just going to click on the âHubSpot Marketing Hubâ option, and you can see here itâs just changed this little drop down here to say that it needs the HubSpot API key.
If you click on that link itâll show you how to get that key, but Iâm already logged into HubSpot, so Iâll show you how to get to it from HubSpot in the browser. If you login to HubSpot and go to your settings page just by clicking the little âSettingsâ icon up here, and you want to go down to âIntegrationsâ; this little drop down you want to expand âIntegrationsâ, and click on âAPI Keyâ and that will load up the HubSpot API key page. Iâve already got a API key active, so if you can see that in yours you just want to click on the âShowâ link here, and then prove that youâre not a robot, which Iâm not, not as far as I know.
That will show the API key for HubSpot, and now that thatâs revealed, you just want to go ahead and click on the âCopyâ link which will copy it to our clipboard. Okay, thatâs just copied our HubSpot API key to the clipboard; now we can jump back into Figma and in the API key input weâre just going to paste that by pushing Command + V on the keyboard (or Control + V if youâre using windows). Iâve just pasted in my HubSpot API key down there.
The other important thing to know is that for the footer we basically need to include a HubSpot footer for this to be considered a valid email. If you havenât already done so, Iâll just close this off for one second, and under the âFooterâ category for the components, youâll see that weâve got a HubSpot specific footer template. If you donât already have one of those, and you want to make sure that youâve got all the right links and all the right tags in there that HubSpot wants, just go ahead and select your email, go to the âFooterâ tab and then click on the HubSpot platform specific footer. Thatâs just going to add that in there; if we just really quickly open that up we can see here if we open up the Figma plugin settings, itâs automatically added the HubSpot unsubscribe and web links, and itâs got our company tags which HubSpot also wants when you create emails in HubSpot. Thatâs just a really quick but important note just to make sure you do have those tags in there, otherwise HubSpot may not show your template when you go to upload it.
Okay, now that weâve got our HubSpot footer in there we just want to go back to the export panel by clicking on export again and itâs kept my API key in there that we just pasted in weâve got HubSpot marketing hub selected; everythingâs perfect ready to go, so all we need to do now is click on the âUpload to HubSpotâ button. Iâm going to click that now, this is going to generate all of the HTML for my email automatically, itâs going to export all of the image content, itâs going to upload those, and then once thatâs done itâs going to send that template automatically into HubSpot.
Itâs confirming that our HubSpot templateâs been uploaded and to view it we just need to log into our HubSpot account and then itâs telling us to click on the âMarketingâ menu item and weâll do that now; weâll click on âMarketingâ, go down to âEmailâ, and then itâs saying to go to the âCreate emailâ button and then click on the âRegularâ email type; Iâm just going to do that now, and then if we click on the âCustomâ tab up here youâll see that our email that we just uploaded is now in HubSpot. We can preview that by clicking on the âPreviewâ button, and this is just loading up a HTML preview of the email that we just uploaded; all the image contents in there, all of the images that we added and thatâs looking good, we can see our view view in the browser links in there, weâve got everything that we wanted set up.
Thatâs in there now, and thatâs pretty much good to go. You can now use that as a email, so if I want to call this âSushi Emailâ for the âJiro Sushi Restaurantâ that weâve made up, and now there we go, you can see that weâve got our brand new email campaign with the custom template that we just uploaded from Figma into HubSpot, and thatâs looking really good. You can send yourself a test email, you can schedule that send, assign it to a list, and things like that, but basically thatâs gonna take the template that we just uploaded from Figma and send that out when youâre ready to save it. Iâm just going to save that; Iâm not going to send it out for now, I just wanted to show you how to upload it.
Just as a further step to see where thatâs actually coming from, what you can do is go down to the âMarketingâ menu again, go down to âFiles and templatesâ, and then click on the âDesign Toolsâ link; Iâm going to do that now, and you can see here on the left hand side, this is our files and folders for the design tools files and folders. You can see that thereâs a new folder in here called âemailifyâ, that automatically gets created when you upload the template from Figma into HubSpot, and we can see here that thereâs an HTML file in there; thatâs actually the HTML file that was just uploaded from Figma into HubSpot just a few moments ago; thatâs actually where the fileâs coming from.
You can see in here itâs got a template type of âemailâ; because itâs got that tag in the HTML, which the Emailify Figma plugin automatically adds in, thatâs why itâs showing up in your email templates; because itâs got that little tag in there and itâs sitting in this files panel, the emails page basically just automatically picks that up as a custom template and thatâs how itâs getting added.
You can actually go ahead and make changes to this file if you wanted to if you really wanted to do it in HubSpot, you can edit the HTML in here after itâs been uploaded, and thatâs totally fine if you want to do that. I just thought Iâd mention where those files are actually getting sent to in case you wanted to either remove them, or clone them, or rename them, or do anything; create a new email from them, all that sort of good stuff.
Thatâs thatâs really it; thatâs the whole process of exporting the email templates from your Figma designs into HubSpot. Itâs much quicker than manually uploading all the images, manually modifying all the HTML to make sure itâs compliant with HubSpotâs templating language; they have some strict requirements with the way the template needs to be structured and all that sort of stuff, so the Figma plugin the Emailify Figma plugin basically injects a bunch of those required tags in automatically.
Then as I said, you basically want to go ahead and add the HubSpot template, the HubSpot footer template thatâs underneath the âFooterâ category in the email components, and thatâs going to automatically inject those links that we really want. If those arenât in there, HubSpot will get a bit angry, and it wonât actually let you view or send the template; it definitely needs the âunsubscribeâ link and it needs these âcompanyâ details as well; like your company address and all that sort of stuff. These will actually get dynamically swapped out in HubSpot based on the information that youâve got in your HubSpot accounts profile, so thatâs just something to be mindful of.
If you are seeing a blank template page, where thereâs nothing on the template, itâs possible that you havenât included the HubSpot footer. Just go ahead and click on that and that will just add that in there; but other than that, thatâs pretty much all you need to know. Youâve got that integration built in now, so as long as youâve got your HubSpot API key, thatâs all you need; you just paste the API key in, select the âHubSpotâ item and then click âUpload To HubSpotâ, and you can upload as many templates as you need to. If you have multiple frames, this will automatically upload multiple frames as well, so it just speeds up the whole workflow if you are a HubSpot user and want to be integrating this with Figma.
Weâll leave it there for today, itâs a fairly brief Figma tutorial just so you can go through those steps visually, as I know itâs a bit tricky to figure out where the API keys are and where the files are getting sent to. I just wanted to cover that in detail, and thatâs all there is to know. Thank you as always for watching, and weâll be back soon with more Figma tutorials just like this one very soon.

Adam Brock
Founder & CEO of Hypermatic


