Export SVG code from a vectorized image with Figma

Tutorial
March 20, 2023
3 min
Digidop blog
Key points

In a previous tutorial, we showed you how to retrieve the HTML code from any SVG file. Today, we'll present another way to do it (faster) directly in Figma with just two clicks.

Step 1: Import Your SVG into Figma

The first step in this tutorial is to insert your SVG file into Figma or create a vector using 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, right-click, hover over "Copy/Paste as", and then click on "Copy as SVG". This action will allow you, when you paste (cmd or ctrl + V) into a text editor, to obtain the HTML code for your vector image.

copy as svg in figma

Step 4: Paste the SVG Code

All you need to do is paste what you copied into a text editor. For example, in a Webflow embed, a notepad, a spreadsheet, or anywhere you like.

paste svg code from figma file

That's it! You can now quickly retrieve the code for a vector image with Figma. You can also learn how to convert PNG to SVG from Figma.

Thibaut Legrand
Thibaut Legrand
Technical Solutions Architect & Webflow Expert

Suggested articles

A woman speaks on stage at a conference, wearing a headset microphone. Behind her, a large black screen displays the question “What then?” in bold white text.
Events
Webflow

Digidop attends FLOWconf 2025, the biggest Webflow & marketing event in Europe.

Digidop attends FLOWconf 2025, the biggest Webflow & marketing event in Europe.
Visual overview of several modern web typefaces in 2025, each displayed on a vibrant background: Editorial New, DM Serif Display, Aeonik, SF Pro Rounded, Rader, Champ, Monument, Canicule, Clash Display, Supply, Agrandir, and more — a graphic composition highlighting typographic diversity.
Documentation
Design

The 20 Best Fonts for a Modern and Impactful Website in 2025

The 20 Best Fonts for a Modern and Impactful Website in 2025
Mosaic of homepage designs from several Webflow agencies (Digidop, N4, Refokus, Flow Ninja, Tonik, Finsweet, Edgar Allan), showcasing diverse creative approaches and visual identities centered around the Webflow logo.
Storytelling
Webflow

My Top 7 Webflow Agencies in 2025 (From a Founder’s Perspective)

My Top 7 Webflow Agencies in 2025 (From a Founder’s Perspective)

Want to turn your website into your most valuable asset?

Contact us today