AVIF vs WebP vs PNG: which format for UI design

PNG, WebP and AVIF compared for UI work, covering compression, transparency, browser support and fallbacks, plus how to export all three from Figma.

By UIXport team6 min read
On this page

Key takeaways

  • Use PNG when you need exact, lossless pixels and transparency that works everywhere.
  • Use WebP as your everyday web format, because it can be lossy or lossless, keeps transparency and shows in every current major browser.
  • Use AVIF when you want to try for smaller files and can ship a fallback, since its browser support is newer.
  • In UIXport, PNG and WebP are on the Free plan and AVIF needs Pro or one of 10 free Pro runs a month, and one run can export all three.
  • No format wins on every image, so export the same frame a few ways and compare the files on your own designs.

PNG, WebP and AVIF can all hold UI screens, icons and illustrations, but they trade off file size, transparency and browser support in different ways. This guide compares them for UI work, maps each kind of asset to a format, and shows how to export all three from one Figma frame.

The three formats at a glance#

Format supports PNG WebP AVIF
Compression Lossless Lossy or lossless Lossy or lossless
Transparency Full alpha Yes Yes
Animation No (APNG is a separate format) Yes Yes
Full browser support from All major browsers Chrome 32, Edge 18, Firefox 65, Safari 16.0 (macOS), Safari 14 (iOS) Chrome 85, Edge 121, Firefox 93, Safari 16.4 (macOS), Safari 16.0 (iOS)

Sources: MDN image file type guide, caniuse WebP and caniuse AVIF, checked on 3 October 2026.

PNG: lossless and safe#

PNG is lossless. Every pixel comes back exactly as you exported it, and it has full alpha transparency. MDN calls it the fallback for any image that needs transparency, since JPEG has no alpha channel (MDN).

The cost is size. MDN suggests preferring WebP or AVIF for raster images, because they generally compress better than PNG, JPEG and GIF (MDN).

In UIXport: PNG is Figma's own PNG export at the scale you pick. UIXport does not compress it further, and the quality slider does not apply to it. That makes PNG a good source file to hand to a developer whose build tools optimize images anyway.

WebP: the everyday web format#

WebP has a lossy mode and a lossless mode, supports transparency and can be animated (MDN). Google designed it to replace JPEG with smaller files at comparable quality, and later added lossless compression and transparency (web.dev).

Support is broad in current browsers but not in older ones, so MDN still recommends a JPEG or PNG fallback.

In UIXport: WebP is on the Free plan, with a quality setting from 5 to 100. The step-by-step version is in how to export WebP from Figma.

AVIF: newer, with more caveats#

AVIF also supports lossy and lossless compression, transparency and animation. MDN describes its compression as much better than PNG or JPEG. Two catches:

  • No progressive rendering. An AVIF file has to download fully before it shows (MDN).
  • Shorter support history. Edge only shows AVIF from version 121, and Safari on macOS has full support from 16.4, with partial support in 16.1 to 16.3 (caniuse). MDN recommends a fallback through the <picture> element.

In UIXport: AVIF export is a Pro feature. It makes real AVIF files with libavif, compiled to WebAssembly and bundled inside the plugin, so nothing is sent to a server. The encoder loads the first time you export AVIF after opening the plugin.

Which format for which UI asset#

Different images in a design file call for different choices.

  • Screens and mockups with small text. MDN notes that photographs and other continuous-tone images usually tolerate lossy compression well. Flat UI with thin text and hard edges is not continuous-tone. After a lossy WebP or AVIF export, zoom in on the text. If edges look soft, raise the quality or use PNG.
  • Photos and illustrations. These suit lossy WebP or AVIF.
  • Icons and logos. If the artwork is vector, SVG is often the better fit. For raster icons with transparency, use PNG or WebP, not JPG. JPG has no transparency, so UIXport fills transparent areas with white.
  • Handoff to developers. Export several formats in one run and let the team decide what ships.

For assets beyond UI screens, such as logos, hero photos and social share images, the best image format for every website asset gives a pick and a fallback for each.

Ship all three with a picture element#

You don't have to pick one format for everyone. A <picture> element lists several sources, and the browser chooses one it can use. The <img> inside is the fallback when none of them work (MDN: picture). A minimal version looks like this:

html
<picture>
  <source srcset="hero.avif" type="image/avif" />
  <source srcset="hero.webp" type="image/webp" />
  <img src="hero.png" alt="Product dashboard" />
</picture>

Generate the markup with Picture Tag#

UIXport's Dev tools tab writes this markup with Picture Tag:

  1. Select the layer. Picture Tag uses the first selected item.
  2. Pick formats. Under Included formats, tick AVIF, WEBP, PNG or JPG. AVIF, WebP and PNG are on by default.
  3. Pick resolutions and a fallback. Choose Resolutions (1x, 2x, 3x) and a Fallback src format.
  4. Copy it. Click Copy HTML.

Sources come out in order: AVIF, then WebP, then the PNG or JPG fallback. The tool writes markup only and is free with no cap. See Picture Tag.

Compare the formats on your own design#

The fastest way to choose is to export the same frame three ways:

  1. Add the image. Open UIXport on the Exporter tab and select a frame. Or click Upload local file (or Upload in the list header) to add a PNG you already have.
  2. Add one row per format. In Export as, set the first row to PNG. Click Add format and set the new row to WEBP. With Pro, add a third row and set it to AVIF. Keep the same scale on every row.
  3. Set the quality. Set the Quality Level, for example High (80%).
  4. Export. Click Export Selected (N Formats). The files arrive together in one ZIP.
  5. Compare. Check the file sizes, then open each file and zoom in on text and edges.

For uploaded files, UIXport also shows the Original, Exported and Saved sizes after the export. On the Free plan, a run with an AVIF row uses one of your 10 free Pro runs a month, however many frames it exports.

Limits and tips#

  • No size promises. We don't publish AVIF or WebP savings figures. Results depend on the image and the quality you pick.
  • PNG is not optimized. It is Figma's native PNG. The quality slider only affects JPG, WebP, AVIF and PDF rows.
  • WebP depends on the browser. If it fails, run the export in a different browser.
  • No color management. UIXport has no color profile setting. Figma's own export lets you pick a color profile (Same as file, sRGB or Display P3) (Figma help). WebP and AVIF are not among Figma's native formats.

Next steps#

Questions

Is AVIF always smaller than WebP?

Not on every image. MDN describes AVIF's compression as much better than PNG or JPEG, but results depend on the image and the quality you pick. We haven't measured UIXport's AVIF output against WebP, so export both and compare.

Which format should I use for icons and logos?

If the artwork is vector, SVG is often the better fit. For raster icons with transparency, use PNG or WebP, not JPG, because JPG has no transparency.

Do AVIF and WebP need a fallback?

MDN recommends one for both. A picture element can list AVIF and WebP sources with a PNG or JPG image as the fallback, and UIXport's Picture Tag tool writes that markup.

Is AVIF export free in UIXport?

Not without limit. AVIF export is a UIXport Pro feature, at $4.99 a month or $49.99 a year, and the Free plan includes 10 free Pro runs a month, so 10 runs with AVIF rows. PNG and WebP are on the Free plan with no cap.

Does UIXport compress PNG files?

No. UIXport's PNG is Figma's own PNG export at the scale you pick, and the quality slider does not apply to it.

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.