How to export HTML emails from Figma to Klaviyo using Emailify
Follow along with this step by step Figma tutorial video.
Steps
- Install the Emailify plugin from the Figma Community and run it from Plugins in your Figma file.
- Open an email already designed in Emailify and click the Export button in the plugin header.
- Change the export option from HTML download to the Klaviyo upload option.
- Open the Klaviyo private API key page, create a private API key, label it, and copy the key.
- Paste the private API key into the Emailify plugin, then fill in the subject line and pre-header text if needed.
- Click Upload to Klaviyo to generate the HTML, upload the assets, and create the template in Klaviyo.
- Open the Klaviyo templates list and refresh it to confirm the new template was created and preview it.

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 Klaviyo email templates directory.
Weâre going to be doing this by using a Figma plugin called Emailify. You can install that by just going to the Figma Community, searching for the word âEmailifyâ and under the âPluginsâ tab youâll see âEmailifyâ pop-up; all you need to do is click on the âInstallâ button on the right-hand side, and then you can jump back into your Figma file.
To run the Figma plugin, you can just right-click anywhere, go down to âPluginsâ, then click on âEmailifyâ, and that will run the Figma plugin that we just installed. This Figma tutorial assumes that youâve already designed an email using the Emailify Figma plugin; if you havenât done that before, we have another tutorial on that on our YouTube channel thatâs worth checking out, so if you want to do that first and then come back, thatâs one option, but this video just assumes youâve already got one ready to go that we can export.
To export this email weâre just going to go ahead and click on the âExportâ button in the Figma pluginâs header, so go ahead and click on âExportâ and thatâs just going to bring up the list of our emails and the Figma pluginâs export options. By default, itâll set it to HTML; this will basically download a package of HTML files and assets directly to your computer, but for today we want to actually export it out to Klaviyo automatically.
To do that, we just click on this little drop down, and instead of downloading to our computer, we want to actually go to the upload to a platform grouping down here. Today weâre going to be using Klaviyo, so Iâm just going to click on the âKlaviyoâ option, and youâll notice thatâs just changed the options down here; itâs giving us a little link to get our Klaviyo private API key. If we go ahead and click on that link itâll open up our API key page in the browser. If youâre not already logged into your Klaviyo account youâll have to do that, but once youâre logged in and you go to this page youâll be able to generate your API key that weâre going to be using.
Once youâre on this page, on your Klaviyo API key page, all you need to do is go ahead and click on the âCreate private API keyâ button down here in the bottom right, so Iâm going to click on that, and thatâs just created a brand new private key for me. I can label that, so Iâm just going to say âEmailify Figma Pluginâ just so we can reference what it is at a later date. Save that label, and then the private API key is just sitting behind this little icon here; if you click on that icon itâll reveal your private key. All you need to do go is go ahead and copy that, so just highlight the private key and copy it with Command + C (or Control + C if youâre on windows) and then now that youâve got the key copied, you can jump back into Figma, and click on this private key API input box here in the Figma plugin. Iâve clicked on that, and now Iâm just going to paste it with Command + V (or Control + V if youâre on windows), and you can see here itâs just pasted in our brand new Klaviyo API key.
Thatâs perfect, thatâs exactly what we we need to authenticate the the upload, and then you just want to make sure youâve got your subject line filled out and your pre-header text if you want to include that as well. In my case, Iâm happy with all this, my email is ready to go; now all we need to do is click on the âUpload to Klaviyoâ button; Iâm going to go ahead and do that now, and this is just going to generate all the HTML automatically for us, itâs going to export all of our image assets, upload them online so theyâre all hosted, and then itâs going to send that template directly into Klaviyo.
Itâs just told us that our Klaviyo template has been uploaded, so we can jump into this Klaviyo templates page. If we click on that and open up another browser window thatâs going to link us to this page here which is the Klaviyo email templates list. Iâm just going to refresh that page, and you can see here itâs just now created a brand new template with the email that we just uploaded. You can see here weâve got our preview, I can jump into that by clicking on the title and thatâs going to load up our template. You can see here itâs automatically uploaded all of the HTML, this is production ready HTML thatâs been uploaded and generated from the Emailify Figma plugin that we just uploaded a moment ago. Thatâs all in there, itâs all been inlined so you donât have to worry about running it through any CSS pre-processors or anything like that to get your CSS in there, it takes care of all of that for you.
You can preview it visually just by clicking on the âPreviewâ tab up here and thatâs going to let you actually scroll through the email visually and see what it looks like when it when itâs rendered. You can see here this is all HTML, this is all of our content as weâd expect, and thatâs everything we we designed and uploaded in Figma all looking really nice. You can go ahead and preview that email, so if you wanted to send a test email to yourself you can go ahead and do that, and thatâll work just fine. If youâve already used Klaviyo before youâre probably aware of all the other things you can do now that you do have the email template set up.
This this is really taking care of that extra step that you normally have to go through, which is manually creating templates, which can be a little bit annoying. For example, youâd normally click on the âCreate Templateâ button here, go through this kind of process and then you have to manually zip up your images, and make sure theyâre all zipped up, then you have to manually upload your HTML file and make sure thatâs kind of pointing to all the right places, and itâs just a bit of a headache. This Figma plugin integration will make it much easier if youâre a regular Klaviyo user and you want to get those emails out of Figma out of the Emailify plugin as quickly as possible directly into your Klaviyo templates list. This integration lets you do that really easily, and I know we only did one email in this case, but if you have multiple emails you can use the same feature and it will loop through those and upload them one by one and you can you can upload a bunch of them at the same time if you need to do that as well. That should save even more time if youâve got a bunch more HTML emails that you need to upload from Figma to Klaviyo.
The other thing worth being mindful of is each time you do this, it will create a new email template; it wonât override the existing templates in your Klaviyo templates page, and thatâs just because you can actually edit the templates inside of Klaviyo. If someone has gone ahead and edited that template and then youâve re-exported it or re-uploaded it from the Figma plugin, thatâs going to wipe out all of your edits and override it. By default, the Figma plugin just creates a new version in your email templates each time, so you can kind of keep track of those versions and delete these ones if you donât need them anymore or whatever.
Thatâs just something to be mindful of, but hopefully if youâre a Klaviyo user and youâve been wanting to make this process uploading your HTML emails from Figma into Klaviyo email templates a bit more seamless, as I know a lot of you have been requesting and asking for in the comments on the previous video, then this is probably the easiest way to do it. This is pretty much as direct as you can get directly from the plugin Figma plugin straight into Klaviyo, so that should help speed up your workflow a little bit.
Thatâs the whole Figma tutorial; itâs fairly straightforward, all you really need is your private key from your Klaviyo account and youâre ready to go. Just make sure youâve got that Klaviyo option selected, and you can just upload as many emails as you want. Thatâs pretty much it, thatâs the whole Figma tutorial; and thank you as always for watching. Weâll be back soon with some more Figma tutorials just like this one, and weâll catch you then; stay tuned.

Adam Brock
Founder & CEO of Hypermatic


