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:
<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:
- Select the layer. Picture Tag uses the first selected item.
- Pick formats. Under Included formats, tick AVIF, WEBP, PNG or JPG. AVIF, WebP and PNG are on by default.
- Pick resolutions and a fallback. Choose Resolutions (1x, 2x, 3x) and a Fallback src format.
- 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:
- 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.
- 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.
- Set the quality. Set the Quality Level, for example High (80%).
- Export. Click Export Selected (N Formats). The files arrive together in one ZIP.
- 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#
- More detail on each format: AVIF export and WebP export.
- To see what Figma already does without a plugin, read UIXport vs Figma's native export.
- Sizing, quality and loading order come next in image optimization for the web from Figma.
- PNG and WebP are free in UIXport with no cap, and AVIF comes with Pro, plus 10 free Pro runs a month on the Free plan. Install UIXport from Figma Community and export your next frame in all three formats.