Device links
One of the best features of Figma is that it allows you to quickly transfer the designs you make with it to code. If you are an app developer or work with designers, this is a valuable skill to learn. With the help of built-in tools and numerous plugins, Figma allows you to export your design to various platforms.

If you want to learn more about converting your Figma design to code, you’ve come to the right place. In this article, we’ll discuss how to export code in Figma and what tools you’ll need to use.
How to Export Code in Figma on Windows PC
If you are a Windows user and want to export code in Figma, you will be happy to know that you can use numerous options.
figma inspect
One of the methods you can use to export code in Figma is Figma Inspect. This feature allows you to easily convert your designs to Android, iOS, or web code. Since it is integrated, there is no need to install any third-party plugins or applications.
Here’s how to use it:
- Select the items you are interested in and go to the Inspect tab.
- In the “Code” section, select the code you want to export (CSS for Web, Swift for iOS, or XML for Android).
The tool will generate the code depending on the option you choose and then you can export it. Although this is a great tool, it has some limitations. That is, you cannot export SVG to HTML. For that, you will need to use a plugin.
Figma Plugins
Figma features hundreds of useful plugins. We will mention a few that you can use to export your design to HTML.
Figma to HTML
He plug allows you to convert your design to HTML or CSS, depending on your needs. Follow the steps below to install the plugin and export the code:
- Access the main menu by pressing the icon in the upper left corner.

- Press “Plugins”.

- Press “Search for plugins in the community”.

- Type “Figma to HTML” and select “Plugins” at the top.

- Press “Install.”

- Go back to your design and select the desired elements.
- Go back to the main menu, select “Plugins” and then select “Figma to HTML”.

- Choose HTML or CSS.

- Press “Copy” or “Download”, depending on your needs.

Anima for Figma
Another useful plugin is Anima for Figma. With this plugin, you can convert your design to HTML, CSS, React and Vue. Follow these steps to use the plugin:
- Open the main menu by selecting the top left icon.

- Press “Plugins”.

- Select “Search the community for plugins”.

- Type “Animate for Figma.”

- Press “Install.”

- Select the items you want to export.
- Open the main menu, press “Add-ons” and select “Anima for Figma”. Register if you don’t have an account.

- Choose the code type and press “Export Code”.
How to export code in Figma on a Mac
Exporting your design to code on a Mac device can be done in several ways.
figma inspect
This built-in tool allows you to inspect and export code and other values for your designs. With Figma Inspect, you can choose from three code options: Android, iOS, or Web (CSS only).
Follow the steps below to use Figma Inspect on a Mac:
- Select the items you want to export.
- Open the “Inspect” tab on the right.
- Choose between CSS, iOS or Android.
- Copy your code.
If you are only interested in CSS, iOS and Android, this is a great tool to use. However, if you want to export your design to HTML, you will need to use a different method.
Figma Plugins
If you want to convert your designs to HTML, Figma offers dozens of plugins that serve this purpose. The installation process is simple. We will list some of the most popular ones.
Figma to HTML
This plug allows you to convert your design to CSS or HTML. Here’s how to install it:
- Select the top left icon to open the main menu.

- Press “Plugins”.

- Select “Search the community for plugins”.

- Type “Figma to HTML” in the search bar and select “Plugins” at the top.

- Press “Install.”

- Return to your design and select the elements you want to export.
- Open the main menu, select “Plugins” and then select “Figma to HTML”.

- Select HTML or CSS.

- Press “Copy” or “Download.”

Figma to code
With this plug, you can convert your Figma design to HTML, Tailwind, Flutter or Swift UI. Follow the steps below to install and use it:
- Press the top left icon to access the main menu.

- Select “Plugins”.

- Press “Search for plugins in the community”.

- Type “Figma to Code” in the search bar and choose “Plugins” at the top to get relevant results.

- Press “Install.”

- Go to your layout and select the desired elements.
- Access the main menu again, select “Add-ons” and then select “Figma to Code”.

- Select the desired code.
- Press “Copy to clipboard.”
Can I export code in Figma on iPhone?
The new Figma app for iPhone was only available as a beta version through Test flight for the first 10,000 iPhones, but the company says the full launch is coming soon. The app allows you to explore and access your designs and track changes live on your iPhone while you edit the design on your computer.
At that time, it is not possible to edit designs through the iPhone app, which means there is no way to export code through it.
Figma also offers the Figma Mirror app in the App Store. This app allows you to mirror your designs on any iOS device without being connected to the same network. That way, you can check how your design looks on a particular device (in this case, iPhone) and track changes. Although useful, the app does not allow you to export code on your iPhone. For that, you’ll have to grab your computer.
You can also access your designs through your browser. However, you will only be able to view your design and track changes live.
Can I export code in Figma on an iPad?
Unfortunately, it is not possible to export code in Figma if you are using an iPad. Figma is working on the mobile app and there is a beta version, but it was not available for tablets, only for iPhone and Android.
The Figma Mirror app is available on iPads. The app allows you to track the changes you make to your design through your computer and check how they look on the iPad screen. Unfortunately, the option to export code within the app is not available.
If you don’t want to install the app, you can access Figma through your browser and track design changes. But exporting code in Figma is only possible on a computer.
Can I export code in Figma on an Android?
Figma is currently working on the Android app and is offering a beta version for 10,000 Android phones. You can become a tester by downloading the application from Play store and accessing this link. You can explore, view and share your designs and track changes within the app even when you’re not near your computer.
Although the application is useful for many purposes, it does not currently allow you to export code.
He Figma Mirror The app is also available for Android. Its main goal is to keep track of the changes you make to your designs on your computer and ensure they look good on all Android devices. The option to export code is not available.
You can also use Figma in your browser if you don’t want to install the app. However, you still won’t be able to export the code. For that, you will have to use your computer.
Additional FAQs
How do I export colors from Figma to Xcode?
Unfortunately, it is not possible to export colors from Figma to Xcode as Figma does not support it. But there is an alternative solution you can use called Figma Export. Follow the steps below to use it:
1. If you haven’t already, install it Figma Export.
2. Open “Terminal.app”.
3. Open the folder with the “figma-export” file.
4. Start “figma-export”.
5. Export colors using “./figma-export Colors -i figma-export.yaml”.
How do I export HTML code from Figma?
As mentioned above, the built-in tool called Figma Inspect allows you to get CSS, but not HTML. If you need the HTML code, you will need to install a plugin.
Figma features dozens of plugins that serve this purpose. Our recommendation is Figma to HTML. Here’s how to use it:
1. Open the main menu. It is the top left icon.
2. Press “Plugins”.
3. Select “Search the community for plugins”.
4. Type “Figma to HTML” in the search bar and make sure “Plugins” is selected at the top.
5. Select “Install”.
6. Return to your layout and select the elements you want to convert to HTML.
7. Go to the main menu, select “Plugins” and open “Figma to HTML”.
8. Press HTML.
9. Choose between “Copy” or “Download”.
Get the code you need
Figma allows you to export different types of codes using various methods. You can use built-in tools or download different plugins, depending on your needs. For now, exporting codes is only possible through computers. Figma released the beta version of the mobile app (limited to 10,000 iPhone or Android devices), but it does not include this option. Fortunately, exporting code on computers is quick and easy.
How do you export code in Figma? Do you use one of the methods we mention in this article? Tell us in the comments section below.