Figma to website guide

How to Export Figma to HTML (All the Real Options)

Figma Design has no complete Export to HTML command. Use a code-export plugin or hand-code for real HTML files, or publish with Figma Sites or the Figment plugin if you only need a live URL.

Nikita JerschowPublished Updated

Publishing from Figma with Figment

The Figment plugin turns page frames in a Figma Design file into a hosted website.

Free planfigment.so address, Figment badge$0
Paid plansYour own domain, no badgeSee plans

Hosted publishing, not a code download.

Figma Design does not have a complete Export to HTML command. It exports static assets, and Dev Mode gives code snippets for selected objects. Figma Sites publishes a website, but Figma says you cannot export that site's code for external hosting. To receive a complete HTML page, use a code-export plugin or build the page from the design.

If you only need the design online, skip the code handoff that nobody will maintain. The Figment plugin publishes a selected frame as a hosted website: open the plugin, select the frame, and choose Make this website public. Free gives you a figment.so URL with a Figment badge, and a paid plan connects custom domains. That is hosted publishing, not a downloadable HTML export. If you already exported and the page looks wrong, start with what breaks when you export Figma to HTML.

Which Figma to HTML options exist?

MethodWhat you getBest forWhat you do not get automatically
Figma asset exportPNG, JPG, SVG or PDF filesImages, icons, logos and fixed-layout documentsA web page, responsive layout or application logic
Dev ModeCSS, SwiftUI, UIKit, Compose or XML snippets for a selected objectDeveloper handoff and design inspectionA complete HTML document or working site
Code-export pluginGenerated files in the formats the plugin supportsA first code draftAutomatic semantics, accessibility, maintainability or framework fit
Figma SitesA hosted websiteNo-code publishing inside FigmaDownloadable site code for external hosting
Direct-publish pluginA hosted website made from the selected frameDesigners who need a live URLA source-code project unless the product proves a separate export path
Hand-coded implementationA codebase built for your stackLong-lived sites and applicationsA one-click conversion

Publishing gives you a URL. Exporting gives you files you can inspect, run, change and host somewhere else.

If you already chose a website platform, use its guide first. Each covers the handoff, what needs rebuilding and what to check before you publish: Figma to Webflow, Figma to Wix, Figma to WordPress, Figma to Shopify.

How do I export images and vectors from Figma?

Use the Export section when you need assets, not a page. Figma's current documentation lists PNG, JPG, SVG and PDF as the static design formats.

  • JPG for photographs when file size matters and transparency does not.
  • PNG for transparency or sharp raster text and graphics.
  • SVG for logos, icons and vector illustrations that must scale.
  • PDF for fixed-layout documents and design review.

These files do not include your layout as HTML. A full-frame PNG may look like the design, but its text, links, headings and buttons are pixels. It is not a usable website.

How do I copy code snippets from Dev Mode?

Dev Mode shows code in the Inspect panel for the selected object. For web work, set the language to CSS and copy the snippet into an editor. Figma says Dev Mode is available on paid plans and needs a Full or Dev seat.

Treat the snippets as design specifications. They give dimensions, spacing, typography, colors and layout details for the selected object. They do not create the surrounding document, content hierarchy, data flow or responsive system. Do not assemble a full page by copying one layer at a time. Use the values while you build a coherent component and layout system.

How do I use a Figma-to-HTML plugin?

A code-export plugin reads the layer tree and generates a page or component tree. The output, framework, plan limit and download method depend on the plugin, so check its current listing and documentation before you pay.

Input structure matters. Auto layout, reusable components, clear layer names and consistent variables give the converter more information. Free-positioned layers give it only coordinates. No converter can infer a durable component model, correct heading order or application behavior that the design does not express. Treat generated code as a first draft until it passes the checklist further down.

Should I choose Anima or Locofy?

Both belong to the code-export route. The question to ask is who will own the files after export, not which tool makes the fastest first conversion.

Choose a code-export workflow when a developer will review the result, fit it into an existing application and maintain it after handoff. Before you choose a tool, get a sample from your own Figma file and confirm the output format, component structure, responsive behavior and build process. Do not assume a framework or mobile target is supported because another export format is available.

If nobody will maintain the files, the export creates a second job: you still need hosting and deployment, and a process for reconciling a new export with manual code changes. A hosted publishing route can be the shorter fit then.

For either tool, test a second design change before you commit. Export once, make a small code edit, change the Figma design and export again. The result shows whether your team can preserve manual work or whether every design update becomes a merge project.

Can I publish with Figma Sites instead?

Yes, but Figma Sites is not an HTML export. It is Figma's hosted website product. You copy a design frame into a Sites file, add breakpoints, preview it and publish to a figma.site address. Figma recommends auto layout for responsive behavior.

Figma's publishing FAQ answers the portability question directly: it is not currently possible to export a Figma Site's code for external publishing. A local .site copy is a proprietary Figma file, not a folder of deployable HTML, CSS and JavaScript. Choose Sites for Figma's publishing workflow, and do not choose it when your acceptance test requires files that run on your own host.

Can I publish with Figment instead?

Yes, if the result you want is a hosted website. Figment builds and hosts a website from selected top-level frames. Choose Make this website public in the plugin. Free publishes to a figment.so URL with a Figment badge. Pro ($49/month, or $39/month billed yearly) connects up to 10 custom domains, and Studio ($199/month, or $159/month billed yearly) connects up to 50. Pro and Studio start with a 30-day trial. See pricing.

There is no ZIP file or source-code project to move to another host, and no CMS. Use a code-export plugin or hand-coded implementation when you need portable files. The plugin does not publish a Figma Sites file in place. For the steps, read how to turn a Figma design into a website.

When should I build the page by hand?

Build by hand when a development team will own the site. A developer uses Figma as the specification, exports the needed assets and writes semantic HTML and a responsive layout for the chosen stack. The Figma-to-code workflow for coding agents explains how to package that handoff and review the result when an agent writes the first version.

This takes more time, and it gives the team control over component structure, accessibility, performance, tests, deployment and future changes. For a production application or a site that must fit an existing codebase, that control usually matters more than first-conversion speed.

How do I test generated HTML before I accept it?

Do not judge an export by opening its homepage once. Run this checklist:

  • List every file. Confirm you received HTML, CSS, JavaScript and the assets you expected.
  • Run it through a local web server, not only by opening index.html from disk.
  • Disconnect from the internet and check which images, fonts, scripts and styles stop working.
  • Resize the page at about 375, 768 and 1440 pixels. Look for clipping, overlap, tiny text and horizontal scrolling.
  • Use the keyboard only. Confirm that links and controls have a visible focus state and a useful order.
  • Inspect headings, links, buttons, image alt text, form labels and landmarks in the HTML.
  • Check the browser console for failed requests and runtime errors.
  • Change a heading and an image. Confirm a developer can find and update both without rebuilding the export.
  • If the result uses a framework, install dependencies and run its documented production build.
  • Remove private tokens and design-only content before deployment.

If the output fails these checks, it is a visual draft, not a finished handoff.

What did the inspected Figment artifact contain?

We inspected an older published Figment site. Its HTML contains design data and image references on Figment's storage service. The initial <main> is empty, so the visible page depends on JavaScript. Copying that HTML alone would not give you an independent, self-contained site.

This sample is one older published artifact, not the output of a fresh export, and we have not verified a current downloadable package. Before you choose any exporter for self-hosting, ask for a sample download and run the checks above. A hosted page and a portable code package are different deliverables.

Which route should I choose?

  • Images or vectors: Figma's asset export.
  • Values from the design for a developer: Dev Mode.
  • A code draft you can review: a code-export plugin.
  • A live URL without portable source files: Figma Sites or Figment.
  • A codebase that is the product: hand-code the design.

The wrong route is any export that leaves you with files your team cannot run or maintain.

Where do these facts come from?

Figma Help: Export from Figma Design; Figma Help: Export formats and settings for static designs; Figma Help: Use code snippets in Dev Mode; Figma Help: Explore Figma Sites; Figma Help: Move designs from Figma Design to Figma Sites; Figma Help: Publish, update, or unpublish a site; Figma Help: Save a local copy of files.