SVG vs PNG for icons and logos: which to export from Figma

SVG vs PNG for icons and logos, compared on scaling, file size, CSS and dark mode, accessibility and support, with where PNG still wins and how to export each.

By UIXport team12 min read
On this page

Key takeaways

  • Export SVG for flat vector icons and logos in your own website or app, because one file covers every size and screen density and can be restyled with CSS.
  • Export PNG when the artwork holds photos, textures or heavy effects, or when the destination does not take SVG, such as Outlook 2007 to 2016 for Windows, a Google Play icon or a default WordPress install.
  • Neither format is always smaller. SVG size follows the number of shapes and points, PNG size follows pixel dimensions and detail.
  • Figma exports SVG at 1x only, so you export one SVG and as many PNG sizes (2x, 3x) as your destinations need.
  • Alt text rules are the same for both formats. Inline SVG uses role="img" and a title element instead of an alt attribute.

Short answer: For icons and logos drawn as vectors in Figma, export SVG. One file stays sharp at every size and screen density, inline SVG can be recoloured with CSS, and simple shapes usually make small files. Export PNG when the artwork contains photos, textures or heavy effects, or when the place it is going does not accept SVG, such as Outlook 2007 to 2016 for Windows, a Google Play listing or a default WordPress media library.

In practice it is rarely either-or. You hand a logo to a developer for the site header, and the same week marketing needs it for an email footer and a partner wants it for their website. The real question is which format each destination needs, and how to get both out of Figma. For formats beyond icons and logos, see the best image format for every website asset.

What is the difference between SVG and PNG?#

SVG describes a picture as shapes, and PNG stores it as pixels. Almost everything else in this comparison follows from that.

SVG (Scalable Vector Graphics) is an XML-based vector format. The file is plain text: a list of drawing commands for shapes, lines, colours and filters, which the browser redraws at whatever size you ask for (MDN).

PNG is a raster format. It stores a fixed grid of pixels with lossless compression and full alpha transparency. Show it larger than its pixel size and the browser stretches it, so the edges go soft. That is why raster exports come in 1x, 2x and 3x versions, which 1x, 2x, 3x explained covers in detail.

SVG vs PNG side by side#

SVG wins on scaling and styling, and usually on file size for flat vector art. PNG wins on photos, effects and compatibility outside your own site. Support data is as of October 2026.

SVG PNG
Kind of format Vector, stored as XML text Raster, a fixed grid of pixels
Scaling Sharp at any size from one file Sharp up to its pixel size, so you export 2x or 3x for dense screens
What drives file size Number of shapes, points and effects Pixel dimensions and how much detail the image has
Transparency Anything you did not draw is transparent Full alpha transparency
Styling with CSS Yes when inline, from inside the file when used as an image No, colours are baked into the pixels
Text Live text, or outlined into shapes Pixels
Photos and textures Poor fit. A bitmap can be embedded, but it stays a bitmap Good, and lossless
Browsers About 97% global support for basic SVG (caniuse) Every browser
Email Unsupported in Outlook 2007 to 2016 for Windows, rasterized to PNG by Gmail, shown by Outlook.com, Yahoo Mail and recent Apple Mail (Can I email) 100% estimated support (Can I email)
Uploads and stores Refused by some, such as a default WordPress install Accepted by WordPress, required for the Google Play icon

When is SVG the better choice?#

Use SVG when the artwork is made of flat shapes and it will live in a web page or an app UI. For icons, MDN's advice is to prioritize the SVG version whenever possible (MDN).

  • UI icons. A 24 px icon draws crisply at 24, 48 or 72 device pixels from the same file, so you ship one asset instead of three. Inline, sprite or icon font is a separate choice, covered in icon font vs SVG sprite vs inline SVG.
  • Logos on your own site. The header logo holds up on every display and zoom level, and it can change colour for dark mode.
  • Diagrams, charts and line illustrations. MDN recommends SVG for images that must be drawn accurately at different sizes.
  • Anything a developer will touch in code. An SVG is text. It can be inlined in HTML, reviewed in a pull request and recoloured with CSS.

When should you use PNG instead of SVG?#

Use PNG when the artwork is not really vector, or when the place it is going cannot take SVG.

  • Photos, image fills and textures. MDN says SVG is not generally useful for bitmap or photographic images. A bitmap placed inside an SVG is still a bitmap, just in a text wrapper.
  • Heavy effects. Big soft shadows, layered blurs and grain can make an SVG heavy or render differently from the canvas. If an illustration leans on them, export both and compare in a browser.
  • Email. As of October 2026, Can I email lists SVG as unsupported in Outlook 2007 to 2016 for Windows. Gmail, on the web and in its apps, shows it rasterized to PNG. Outlook.com, Yahoo Mail and recent Apple Mail versions (macOS 14, iOS 15 and later) display it. For an email logo, a PNG exported at 2x and displayed at half its pixel width is the dependable choice.
  • App stores. Google Play asks for a 512 × 512 px, 32-bit PNG app icon in sRGB, at most 1024 KB (Android Developers).
  • Upload forms. WordPress core's built-in list of file types has no SVG entry (WordPress developer reference), so a default install refuses SVG uploads until a plugin or custom code allows them.

If an icon only exists as a raster and it is going on the web, MDN suggests WebP with a fallback, since WebP and AVIF generally compress better than PNG, which stays the usual fallback.

Is SVG smaller than PNG?#

Often for simple icons and logos, but not always. The two formats grow for different reasons, so the answer depends on the artwork.

An SVG grows with what is drawn: the number of shapes, the number of points in each path, gradients, masks and effects. A two-shape logo is a few lines of text. A detailed illustration with thousands of anchor points, or a bitmap that was auto-traced into vectors, can end up bigger than a PNG of the same image.

A PNG grows with pixel area and detail. Scale matters: a 2x export has four times as many pixels as the 1x version, and a 3x export has nine times as many.

Two habits make the comparison fair:

  • Optimize the SVG before you judge it. An optimizer such as SVGO strips comments, metadata, editor data and unused definitions, rounds numbers and merges paths (SVGO).
  • Measure on your own artwork. Export the same logo both ways, optimize both, and compare the files. Rules of thumb are fine for icons. For illustrations, check.

How do styling, colour and dark mode work?#

SVG can change colour with CSS, and PNG cannot. How much control you get depends on how the SVG is placed on the page.

Inline SVG is part of the page, so your stylesheet can set its fill and stroke. The neat trick for icons is currentColor, a CSS keyword that takes the value of the element's color property (MDN). Set the icon's fill to it and the icon matches the text around it, hover states and dark theme included:

html
<button class="icon-button">
  <svg viewBox="0 0 24 24" width="24" height="24" aria-hidden="true">
    <path fill="currentColor" d="M12 3 3 21h18z" />
  </svg>
  Warnings
</button>

SVG in an <img> tag or a CSS background is treated as an image. The file is a separate document, so your page's CSS does not reach the shapes inside it. Browsers may also restrict it: MDN notes that scripts may be disabled and external resources blocked (MDN). It can still handle dark mode on its own. A <style> block inside the file can use @media (prefers-color-scheme: dark), which follows the color-scheme of the element it is embedded in (MDN).

PNG has its colours baked in. A dark logo on a dark header needs a second, light PNG and some markup or CSS to swap them.

One catch with SVGs from Figma: the colours you picked are written into the file as fixed values. For an icon to follow currentColor, those fills have to be changed after export, by hand, in your build or with a plugin that offers it.

Transparency works the same way in both formats, with one trap. If the frame you export has a white fill, that white comes along in both files. Remove the frame fill, or export the logo layer itself.

How do you make SVG and PNG icons accessible?#

The alt text rules are the same for both formats. What changes is where the text goes.

For an SVG or a PNG in an <img> tag, use the alt attribute and follow the W3C images tutorial:

  • A logo on its own. Use the organization name. There is no need to add the word "logo" (W3C WAI).
  • A logo that links home. Describe where it goes. The tutorial's example is "W3C home" (W3C WAI).
  • An icon button with no visible label. Describe the action, such as "Print this page" or "Search".
  • A decorative icon next to a text label. Use alt="" so screen readers skip it (W3C WAI).

Inline SVG has no alt attribute. Add role="img" and a <title> as the first element inside the <svg> (MDN), or point aria-labelledby at visible text. For a decorative inline icon, like the one in the button above, aria-hidden="true" hides it from assistive technology (MDN).

Two details matter for Figma exports. When text is outlined in an SVG, the words become shapes, so a screen reader has nothing to read, exactly as with a PNG. The name has to come from alt or <title>. And if you run SVGO yourself after adding a <title>, check the version. SVGO 4's default preset keeps it, because removeTitle left the preset (SVGO). SVGO 3, still common in older build setups, strips it unless you switch removeTitle off.

SVG also helps people who zoom. It stays crisp at 200%, while a 1x PNG goes soft, and a 2x PNG narrows that gap.

How do you export SVG and PNG cleanly from Figma?#

In Figma's own export panel, SVG and PDF export only at 1x, while PNG and JPG take a scale, a width or a height (Figma Help Center). So you export one SVG, plus as many PNG sizes as your destinations need.

A few habits save a round of questions from developers:

  • Export icons from a frame at their real size. Put each icon in a 24 × 24 frame, or whatever your grid is, so every file in the set has the same canvas and they line up in code.
  • Know what Outline text does. Figma turns it on by default when a text layer is selected, and the text is no longer editable after export. Uncheck it for live text, such as chart labels that should stay selectable. For logos, outlined text is the safer choice, since the file then does not depend on fonts being installed.
  • Pick PNG sizes per destination. 2x for web and email, the exact pixel size for an app store listing. Figma also lets you choose a colour profile for exports: Same as file, sRGB or Display P3.

Steps to export SVG and PNG together with UIXport#

If you want the SVG and the PNG sizes from one selection in one pass, with the SVG already cleaned, UIXport does it from its Exporter tab. More detail is on the SVG export page.

  1. Select the layers. Select your icons or logo on the canvas and open UIXport. It starts on the Exporter tab, and each selected layer appears in the list, checked.
  2. Set the first row to SVG. In the Export as card, change the format to SVG. Leave the scale alone, since SVG is always exported at 1x.
  3. Add a PNG row. Click Add format. The new row is PNG at 1x, so set it to 2x. Open the row menu (⋯), type @2x in Filename suffix and click Done. Add a 3x row the same way if an app needs it.
  4. Check the SVG cleanup. Open Advanced settings. Clean SVG Markup (Remove Figma properties) is on by default and runs SVGO with its default preset, multipass, the viewBox kept and a float precision of 3. Switch it off to keep Figma's SVG as returned, with text outlined and layer ids included.
  5. Export. Click Export Selected (N Formats). A single file downloads on its own, and two or more arrive together in UIXport Export.zip.

SVG or PNG: the verdict by use case#

SVG for anything that lives inside your own web or app UI, PNG for anything that leaves it. When you are not sure where a file will end up, deliver both.

Use case Export Why
Icons in a website or web app SVG One file for every size, recolourable with currentColor when inline
Logo in your site header SVG Sharp at every zoom level, and it can adapt to dark mode
Logo in an HTML email PNG at 2x Outlook 2007 to 2016 for Windows does not show SVG, and Gmail rasterizes it
Google Play app icon PNG, 512 × 512 px The listing requires a 32-bit PNG
WordPress media library (default) PNG SVG uploads are refused unless a plugin or code allows them
Flat illustration or diagram SVG, then compare sizes Scales cleanly. Check the file size if the art has thousands of points
Illustration with photos, grain or heavy blur PNG, or WebP for the web A bitmap gains nothing from a vector wrapper
Icon that changes colour on hover or in dark mode Inline SVG CSS can restyle it, while a PNG needs a second file
Brand kit for partners and press Both, SVG plus PNG at 2x They will use it in tools you do not control

SVG and PNG are both on UIXport's Free plan. If you want both from the same selection in one export, try UIXport from Figma Community.

Questions

Should I use SVG or PNG for a logo?

Use SVG on your own website and app, where one file scales cleanly to any size and can switch colour for dark mode. Keep a PNG at 2x for email, upload forms and anyone who needs a plain image file.

Is SVG better than PNG for a website?

For icons, logos and other flat vector artwork, usually yes, because you ship one file instead of a 1x, 2x and 3x set, and inline SVG can take its colour from CSS. For photos and textured images SVG has no advantage, and MDN suggests WebP or AVIF with a fallback for raster images.

When should I use PNG instead of SVG?

When the artwork is really raster. Photos, image fills, grain and big blurs gain nothing from a vector wrapper and can make an SVG heavier than the PNG. PNG is also the safer pick for files that leave your own site, such as email logos, app store icons and uploads to platforms you do not control.

Is an SVG always smaller than a PNG?

No. An SVG grows with the number of shapes and points, a PNG with its pixel size and detail. Simple icons are usually small as SVG, while a very detailed illustration can end up larger than the same image as a PNG.

Why can't I export SVG at 2x in Figma?

Figma only supports SVG export at 1x. Scale does not matter for vectors, because the browser draws them sharply at whatever size you set in CSS or HTML.

Can I use SVG in email?

Not reliably. As of October 2026, Can I email lists SVG as unsupported in Outlook 2007 to 2016 for Windows, and Gmail shows it rasterized to PNG. Outlook.com, Yahoo Mail and recent Apple Mail display it, but a PNG is still the safe choice for email logos.

Features in this post

Share this post

Share on XShare on LinkedIn

UIXport team

We build UIXport, the Figma plugin for exporting, compressing and delivering UI assets, at Sigma Studio.

About UIXport

Try it in Figma

Install the plugin from Figma Community. Free includes unlimited core exports and 10 Pro runs a month; Pro adds motion export, print-ready PDFs, AVIF and more.