Badge Webflow Award Winner 2023

Exporting the code of a vectorized SVG image with Figma

Published on 
18/7/2022
-
Amended on 
27/3/2023
Reading time: 5 min
Digidop blog
Written by
Photo of Thibaut Legrand wearing a black t-shirt Digidop

Thibaut Legrand

Webflow Developer & SEO

You want to export the HTML code of an SVG? Thanks to Figma, you can do it directly, for free and in a few clicks!

Key points to remember

In a previous tutorial, we showed you how to get the HTML code from any SVG file. Today, we will show you another way to do it (faster) directly in Figma in 2 clicks.

Step 1: Import your SVG into Figma

The first step of this tutorial is to insert your SVG file in Figma or create a vector in the design tool.

Step 2: Select your SVG

After importing it, you will select your file in Figma by clicking on it.

Step 3: Copy as SVG

Once selected, you will do a right click, hover over"Copy/Paste as", then click on"Copy as SVG". This manipulation will allow you, if you paste (cmd or ctrl + V) in a text editor, to have the HTML code of your vector image.

copy as svg figma

Step 4: Paste the SVG code

You just have to paste what you have copied in a text editor. For example in a Webflow embed, in a notepad, in a spreadsheet, wherever you want.

paste svg code figma file

That's it, you can now recover the code of a vector image very quickly thanks to Figma. You can now discover how to convert from PNG to SVG from Figma.

Flomodia by Digidop
Coudac project by Digidop
project Heka by DigidopFlaw by project DigidopMorfo project by Digidop