Figma Support Forum

Importing svg not working properly

hello,
i tried to import an svg by draging it to my draft but it instead it looks like this…

what can i do?

if it’s anything like what happened to me, my imported file was literally 1 x 1 px in the bottom right corner of that square…no idea why, it scaled up fine because of the vector though.

Reuben, that happens when the SVG you are importing doesn’t have set dimensions on it (viewbox / width & height).

Answering the original question, can you send the code of the original SVG before import? Note that if that SVGs are exported from Illustrator, masks in them won’t import to Figma correctly. Also defs and use are not allowed.