Skip to main content

Stop Wiping out SVG Element IDs on Import

  • August 6, 2026
  • 2 replies
  • 15 views

Brian_Olson

Figma wipes out the id on elements when importing SVGs. If I name an element with id="ElementKey123" in the SVG, it arrives in Figma with the layer named something like just "Vector" instead of the desired "ElementKey123". This adds lots of wasted time to my workflows. I have tools that consume SVGs to generate interactive visuals, and they need elements to stay named correctly. And I do not want to go and rename all the elements by hand in Figma.

2 replies

Jaycee Lewis
Figmate

Hi ​@Brian_Olson 👋 Thanks for continuing to share great feedback. 

I haven't been able to reproduce this yet on a minimal case. Can we compare notes and see where our tests differ?

To recap what I tried: a single-shape SVG, one <ellipse id="bruh"> at the top level, no groups or wrappers. Imported into a new Figma design file by dragging the file onto the canvas. The layer came in named bruh. I also did this through the REST API (GET /v1/files/:key/nodes) rather than just reading the Layers panel — the id was preserved as the layer name.

 

My SVG:

<svg xmlns="http://www.w3.org/2000/svg" width="200" height="120" viewBox="0 0 200 120">
<ellipse id="bruh" cx="100" cy="60" rx="90" ry="50" fill="#7B61FF"/>
</svg>

If you run that exact file through your import, I'd like to know whether you get bruh or Vector. That single data point splits this cleanly: if you also get bruh, something about your real SVGs' structure is the trigger and I’ll test there. If you get Vector from this file, the difference is environmental and we can go a different direction.

To hep me repro your setup, can I get the following:

  • Your result from the minimal SVG above — bruh or Vector
  • One real SVG that reproduces the problem, attached as a file rather than pasted inline
  • How you're importing: drag-and-drop, paste SVG code, or a plugin
  • Figma platform and version — desktop app or browser, and which browser

My test was done using a my own Figma Pro account and the desktop app. Talk soon! — Jaycee

 

 


Brian_Olson
  • Author
  • Active Member
  • August 7, 2026

Hi ​@Jaycee Lewis I think this one was a mistake on my part. I’m sorry about that. I looked for a way delete this thread, but a delete option is not available.