Import & Export
Import
Complete Figma Files
- File menu (Desktop app only) — Go to
File>Import Image/SVG/Figma...and select a local.figfile. - Import help — Click the chevron below the Rectangle icon in the toolbar and select
Import Figmato open the import guide.
In the desktop app, .fig imports include embedded images. If the file contains
multiple pages, choose a page in Select Figma page to import.
Individual Figma Layers
- Copy and paste — Select and copy individual elements in Figma and paste them onto the pen.dev canvas.
Copying and pasting image elements is not supported. Either import the complete Figma file or add images manually.
Images
- Drag and drop — Drag an image from your computer onto the pen.dev canvas.
- Copy and paste — Copy an image to your clipboard and paste it onto the pen.dev canvas.
- Toolbar — Click the chevron below the Rectangle icon in the toolbar and select
Import Image or SVG... - File menu (Desktop app only) — Go to
File>Import Image/SVG/Figma...and select an image.
Supported image formats: PNG, JPEG, and SVG.
SVG files become editable canvas layers. PNG and JPEG files become image layers. See Edit images to remove a background or convert an image to editable vectors.
Import a public URL in the web editor
- Open Import a website
- Enter the public page’s address in Website URL and select Import
- In the web editor, open Layers and select the imported page to edit it
The web editor saves the document in this browser. If the title bar shows Auto-saved and Not synced, reopen the document in the same browser profile. A shared snapshot lets someone else view a version of your design.
Web pages (browser extension)
Use the pen.dev web import extension to bring a page or selected element into pen.dev as editable layers. Install it from the store, then open the page you want to import.
To paste into the desktop app:
- Open the page in your browser and click the pen.dev extension icon
- Click Copy Full Page, or click Select Element, select an element, and click Copy
- Switch to a writable document in the pen.dev desktop app and paste onto the canvas
To open the import in the web editor, choose Edit page on pen.dev. For one part of the page, use Select Element, select it, then choose Edit selection on pen.dev. The extension opens a new pen.dev tab and transfers the import. Wait for Opened and imported in pen.dev., then inspect the layers.
If the page opens without the import, return to the source tab and choose Copy Full Page or Copy for the selected element. Switch to the writable pen.dev canvas and paste. Use this same copy/paste path if opening pen.dev fails.
Web pages (desktop app)
Use the built-in browser to import a web page or an individual element as editable layers.
- Click the globe icon in the top bar to open the built-in browser
- Enter the page’s URL, including a localhost URL for a local development server
- To import one element, click Select an element and select it in the page
- Click Import to add the page or selected element to the canvas
Use Zoom and device settings to choose the page’s preview size before importing. Check the imported layout, fonts, and effects against the page. Imported layers do not retain the page’s JavaScript interactions.
To open a local file, enter its path relative to the .pen document, starting
with ./ or ../. The address field shows local files this way. Type words
instead of an address to search the web with Google. To search with Baidu, choose
it under Settings → General → Browser → Search engine.
To import an element by dragging, select Select an element, then press an
element in the page and drag it onto the canvas. It is imported as layers where
you drop it. Drop it on a frame to place it inside the frame, or press Esc to
cancel.
Desktop browsers block ads and cookie banners, except on local pages such as
localhost. To turn this off, open More options and clear Block Ads and
Cookie Banners. The page reloads.
For an image instead of editable layers, use Screenshot. With an element selected, it captures that element. Otherwise, choose Full Page or Visible Area. Check for private content before importing a signed-in page.
A connected desktop agent can also import a page or capture it with the
browser MCP tool.
Live Browser layers (desktop app)
Select the Browser tool, click the canvas, enter a URL, and press Enter.
Select the Browser layer to change its URL, Device, or Zoom.
Click into a Browser layer to use its page. The canvas zooms in until the layer fits, up to 100%, and pans only as far as needed to bring it into view. To keep the canvas where it is, turn off Pan and zoom to browser on canvas when activated in Settings → General.
To copy the loaded page onto the canvas, choose Open in sidebar in the layer’s properties. Choose Reproduce on canvas for editable layers, or choose Screenshot → Visible Area or Full Page for an image.
When a page opens a pop-up, pen.dev asks whether to open it as a pop-up, open it here in the same browser, or open it on the canvas as a new browser.
To show the live page full screen, see Present a Browser layer.
Icons
- pen.dev includes the following built-in icon libraries: Material Symbols (Outlined, Rounded, Sharp), Lucide Icons, Feather, and Phosphor.
- You can also import your own SVG icons the same way as individual images.
Export
Design to Code
- In the desktop app, press
Cmd/Ctrl + Kto open the AI chat and ask it to generate code from your design. In an IDE, use the IDE’s agent chat.
For HTML export, select the elements and use the properties panel’s Code section. Choose HTML + Tailwind or HTML + CSS, then Copy HTML or Export HTML. Open Code export settings to choose how assets are included and whether to Include HTML scaffold for a complete HTML document.
Individual Elements
You can export one or more elements from pen.dev as PNG, JPEG, WEBP, PDF, or SVG.
- Select the elements you want to export.
- At the bottom of the properties panel, choose the format and a 1x, 2x, or 3x scale for raster images
- Click Export layer, pick a location, and click Save.

Multiple PNG, JPEG, WEBP, or SVG selections produce an export.zip with one file per layer.
PDF exports put each selected layer on a separate page, in selection order.
For a presentation in slide order, use Slides and presentations.
SVG exports keep shapes and text as vector paths and ignore the scale. Images are embedded in the file. Fills and effects SVG can’t draw, like angular and mesh gradients or shaders, are embedded as images.
Right-click a selection and choose Copy as → Copy as PNG or Copy as SVG to copy it to the clipboard. For command-line exports, see the CLI guide.