Skip to main content
Zhiwen Lian
New Member
September 21, 2026

Figma API: Inconsistent SVG export behavior on icon addition/deletion

I am experiencing the same problem as in 

When using the Figma API to export SVGs after adding or deleting an icon in a file, some SVGs exhibit subtle differences. Specifically, some path data shifts by 0.01, or the paths change between relative and absolute coordinates.

Because I use this API to export thousands of icons directly into Pull Requests (PRs), these minor variations create a lot of visual noise in code reviews.

Is there a known solution or a recommended workaround from the Figma team to prevent this?

 

5 replies

Jaycee Lewis
Figmate
Figmate
September 21, 2026

Hey ​@Zhiwen Lian do you have a SVG example that is safe to share? I can make my own and having one with fidelity to your test that repros that drift on your end would be even better. Thanks! — Jaycee

Zhiwen Lian
New Member
September 23, 2026

Hi ​@Jaycee Lewis,

Since the files are confidential, I cannot share them. However, here is some additional context regarding our setup:

Our workflow utilizes a Figma file containing a library of nearly 8,000 icons distributed across multiple pages. We use the Figma API to export the SVGs and then convert them into Android Vector Drawables using the svg2vectordrawble library.

Initially, I suspected that svg2vectordrawble was causing the path drift. To test this, I built a custom converter using SVGO and DOMParser, but the exact same shifting issue occurred. This aligns with the bug described in the forum post I linked earlier.

Please let me know if you need more information. Thank you to look into it.

djv
Figmate
Community Support
September 23, 2026

Thanks for the additional context, ​@Zhiwen Lian! 

To step in for ​@Jaycee Lewis, testing with a separate converter helps us narrow this down. I completely understand that you can’t share the confidential file.
 

Could you confirm whether exporting the unchanged file twice produces identical SVGs, with the differences appearing only after an icon is added or deleted? It would also help to know whether the changes affect icons on other pages.
 

If possible, could you share either a redacted before-and-after SVG snippet showing one changed path, or a small test file with non-confidential icons that reproduces the same behavior? The exact API request and export parameters would also be helpful. You don’t need to share any of the original assets.