html2fig

ChatGPT to Figma: import ChatGPT HTML as editable layers

ChatGPT can write a full design as an HTML page. html2fig is a free HTML to Figma plugin that turns that page into editable layers instead of a flat screenshot. This guide takes ChatGPT to Figma using the prompt built into the plugin.

Install in Figma

How to do it

  1. Copy the prompt. Open html2fig in Figma and go to the Prompt tab. Click Copy prompt.
  2. Give it to ChatGPT. Paste the prompt into a custom GPT's instructions, or at the start of a chat. Then describe the design you want, such as a landing page or a set of social posts.
  3. Save the HTML file. Ask ChatGPT for a single HTML file, then save it to your computer, for example as design.html.
  4. Import it into Figma. In the plugin, open the File tab, then drop in or pick your file. Click Import to Figma. Frames, text, images and vectors arrive as layers you can edit.

Questions

Is it free?

Yes. html2fig is free on the Figma Community, with no limit on how many files you import.

Is my file uploaded?

No. The file is read on your computer, inside Figma, and is never sent to a server.

Does it work with any HTML to Figma conversion?

It works best with HTML made from the html2fig prompt. Other HTML imports on a best-effort basis, and every difference is reported.

Why is a chart missing?

Scripts are removed on import, so charts drawn with JavaScript do not appear. Ask ChatGPT to draw charts as inline SVG.

Ready to try it? Install in Figma.