Skip to content

local HTML to Figma

Local HTML to Figma: Files, Site Folders, .zip and Code

Turn local HTML to Figma layers without hosting: drop a file, a site folder, a .zip or pasted code, pick the pages you need. Files are deleted after import.

  • A single HTML file, a whole site folder, a .zip or pasted HTML/CSS
  • Drop a folder, then tick the pages you want to import
  • Opened from memory in an isolated browser, never file://
  • Deleted as soon as the import finishes; never given a public address

EUREKA! · · 5 min read

Local HTML to Figma: Files, Site Folders, .zip and Code

A lot of the HTML you want in Figma has no public URL yet. A prototype that lives in a folder on your laptop, a template you bought and unzipped, a landing page an agency sent as an archive, an email build, or a page an AI tool just wrote. Uploading it to a server only to import it is a chore, and sometimes it isn't allowed.

HTML to Frames turns local HTML to Figma layers directly. Drop a file, a whole site folder or a .zip, or paste code, and the plugin builds editable frames, text, vectors and images with Auto Layout, the same way it does for a live URL. Nothing gets published, and the files are deleted as soon as the import is done.

What the Local file source does

Local file is one of the plugin's four import sources. It accepts four kinds of input:

  • A single HTML file — choose it or drop it on the drop zone.
  • A whole site folder — drag and drop it, or use Choose folder. The plugin finds the HTML pages inside and lets you pick which ones to import. CSS, images and fonts in the folder come along.
  • A .zip — the same as a folder, packed in one file.
  • Paste code — paste HTML with a <style> block or inline CSS, and it is imported as a one-page site.
Local HTML to Figma: the Local file source with a drop zone, Choose file, Choose folder and Paste code
Local file: drop an HTML file, a site folder or a .zip, or paste code

How it works

  1. The plugin reads your files and lists the HTML pages it found. Build folders such as node_modules and .git are skipped.
  2. You choose the pages. Each page you tick is one import, up to 10 per run, just like a Multiple import of links.
  3. The upload goes to the capture service, up to 30 MB per upload.
  4. The files are opened from memory inside an isolated browser. They are never opened as file:// paths and never given a public address. Relative links to CSS, images and fonts resolve as they would on a real server.
  5. The page is measured and built into Figma layers with the screens and options you chose, including Auto Layout and, on Pro, styles and variables.
  6. The files are deleted as soon as the import finishes. If an upload is abandoned, it is deleted after 2 minutes.

Links between the pages you imported from one folder become Navigate interactions, so a small static site arrives as a clickable flow.

Drop a folder, tick the pages, Import

Paste code

Paste code opens an editor inside the plugin. Paste markup with its CSS, press Use this code, and it is treated as a single local page. If the snippet has no viewport meta tag, the plugin adds one, so a Mobile screen renders at mobile width instead of a zoomed-out desktop layout.

Paste code, Use this code, Import

Why it's different

Uploading code is common. In the public docs we reviewed (October 2026), html.to.design accepts .html files, .zip archives and pasted HTML/CSS, and html2design accepts pasted or uploaded HTML. What HTML to Frames adds is the folder workflow: drop the unpacked site folder as it is, see its pages listed, and pick the ones you need, without zipping it first or importing pages one by one.

InputHTML to Frameshtml.to.design (public docs, Oct 2026)
Single .html file✓✓
.zip archive✓✓
Pasted HTML/CSS✓✓
Unzipped site folder, pick pages✓not described

The second difference is how the files are handled. They stay in memory only while the pages are captured, are deleted right after the last page, and are never served at a public address. That makes the source suitable for client work that is not public yet.

How to use it

  1. Open HTML to Frames in Figma and choose Local file.
  2. Drop an HTML file, a site folder or a .zip on the drop zone, or use Choose file / Choose folder. For code, press Paste code, paste it and press Use this code.
  3. For a folder or archive, tick the pages you want. The counter shows pages and imports.
  4. Choose screens (one on Free; Responsive set on Pro and Team) and options.
  5. Press Import.

Tip: if you pick individual files with Choose file, the folder structure is lost and the plugin warns that the page uses CSS or images you didn't select. Choose the folder instead.

When it helps most

  • Unpublished prototypes. A designer-developer's static prototype goes to Figma for review before anything is deployed.
  • Purchased or exported templates. Unzip a theme or an export from a site builder and pull the pages you plan to customise.
  • Email and landing page builds. Bring the HTML your developer or agency delivered into Figma to check it against the design.
  • AI-generated code. Paste a page that ChatGPT, Claude or another tool wrote and get editable layers instead of a screenshot. If you work in Claude Code or Cursor, the MCP connection sends pages to Figma without copy and paste.
  • Confidential work. Client sites under NDA can be imported without putting them on a public URL.

Good to know

  • Limits: up to 30 MB per upload; single files over 10 MB and build folders are skipped. Up to 10 pages per import.
  • Each page is one import, counted the same way as a link.
  • Relative paths must resolve. CSS, images and fonts referenced with relative paths need to be inside the folder or archive you drop.
  • No Re-import or Import linked pages for local files, because the files are deleted after the import. To update, import again.
  • Pages that need a running server (an API, a login, a framework dev server) are better captured from localhost with the Chrome extension.

Get the plugin and drop your first local folder into Figma.

Frequently asked questions

Can I convert a local HTML file to Figma without uploading it to a website?
Yes. Choose Local file in HTML to Frames and drop the HTML file, a site folder or a .zip. The files are opened from memory in an isolated browser on the capture service and are never published at a public address. They are deleted as soon as the import finishes.
How do I import a whole static site folder into Figma?
Drag the folder onto the Local file drop zone or use Choose folder. The plugin lists the HTML pages it found, and you tick the ones you want, up to 10 per import. CSS, images and fonts inside the folder are used, and links between imported pages become Navigate interactions.
Can I paste HTML and CSS code directly into the plugin?
Yes. Press Paste code in the Local file source, paste HTML with a style block or inline CSS, and press Use this code. It is imported as a one-page site, and a viewport meta tag is added if it is missing so mobile screens render correctly.
What happens to my files after the import?
They are kept in memory only while the pages are captured and deleted right after the last page. If an upload is abandoned, it is deleted after 2 minutes. Files are never opened as file:// paths and never given a public address.
What is the size limit for local HTML imports?
Each upload can be up to 30 MB. Single files over 10 MB and build folders such as node_modules are skipped. Each selected page counts as one import, with up to 10 pages per import.

Stop redrawing the web.

Paste a link and get real, editable, responsive Figma layers in seconds. Free to start — 10 imports every month.

Stop redrawing the web.

Paste a link and get real, editable, responsive Figma layers in seconds. Free to start — 10 imports every month.

No credit card. Pro is bought inside Figma.

Coming soon to Figma Community