Best image format for websites: logos, photos, screenshots

The best image format for each website asset, from logos and icons to photos, screenshots, cut-outs and share images, with a fallback and the reason.

By UIXport team14 min read
On this page

Key takeaways

  • Use SVG for logos, icons and flat illustrations, because vector art stays sharp at any size.
  • Use AVIF or WebP for photos and hero images, with a JPG fallback in a picture element.
  • Use high-quality WebP or lossless PNG for UI screenshots, and check small text at 200% before choosing; use WebP with a PNG fallback for transparent cut-out photos.
  • Never use JPG when you need transparency, because JPG has no alpha channel.
  • Use JPG or PNG at 1200 x 630 for Open Graph images, since the platform docs we checked give sizes but name no modern formats.
  • Figma exports PNG, JPG, SVG and PDF on its own. UIXport adds WebP on the Free plan and AVIF on Pro.

Short answer: Use SVG for logos, icons and simple illustrations. Use AVIF or WebP for photos and hero images with a JPG fallback, WebP or PNG for UI screenshots and anything that needs transparency, and JPG or PNG for social share images. No single format wins every job, so pick one per asset.

The rest of this post explains each pick and when to break the rule. It is broader than our AVIF vs WebP vs PNG comparison, which looks at three raster formats for UI work: here we add SVG and JPG and choose per asset. The advice leans on MDN's image file type guide, web.dev's guide to choosing an image format and caniuse support data, all checked in October 2026.

Which image format is best for each website asset?#

For vector artwork, SVG. For anything made of pixels, a modern format (WebP or AVIF) first, with an older one (JPG or PNG) as the fallback. The table applies that rule asset by asset.

Asset First choice Fallback Why
Logo or wordmark SVG PNG at 2x Vector, sharp at any size, small for simple shapes
Icon SVG WebP or PNG Most icons already exist as vectors
Illustration or flat graphic SVG, if built from shapes PNG or high-quality WebP Textures and embedded photos turn it into raster work
Photo or hero image AVIF or WebP, lossy JPG Photos hide lossy compression well
UI screenshot or product shot WebP at high quality PNG Small text and hard edges show compression damage
Cut-out with transparency WebP PNG Needs an alpha channel, which JPG lacks
Social share image (og:image) JPG for photos, PNG for flat cards None needed Platform docs give sizes, not modern formats

Two terms do most of the work in that table. Lossy compression throws away detail you are unlikely to notice so the file gets much smaller. Lossless compression keeps every pixel exactly. The rule of thumb: prefer lossless for screenshots, diagrams, logos and line art, where blurring and coloured fringes around text and edges are very visible, and use lossy for photographs, where the lost detail is harder to see (MDN).

Here is what each format can do:

SVG PNG JPG WebP AVIF
Type Vector Raster Raster Raster Raster
Compression Text, compressible in transit Lossless Lossy Lossy or lossless Lossy or lossless
Transparency Yes Yes No Yes Yes
Browser support 97.27% of global usage All browsers All browsers 96.82% of global usage 95.36% of global usage

All five work in every current major browser. The percentages are caniuse global usage, full and partial support combined, from its August 2026 data; caniuse does not track PNG or JPG. Sources: MDN, caniuse SVG, caniuse WebP and caniuse AVIF, as of October 2026.

What is the best format for a logo: SVG or PNG?#

SVG, as long as the logo is vector artwork, which it usually is when it was drawn in Figma. Keep a PNG export at 2x for the places that only accept raster uploads.

SVG is an XML-based vector format. Instead of storing pixels, it stores shapes as drawing commands, so the browser draws the logo fresh at whatever size the layout asks for. That makes it the natural format for logos, icons and interface elements that have to look exact at several sizes (MDN, web.dev). Because an SVG file is text, a server can also compress it in transit the way it compresses HTML.

Picture the usual handoff: a developer needs the header logo at 32 px tall on mobile and 48 px on desktop, plus a larger version for the footer. One SVG covers all three. A PNG would need a file per size, or one large file scaled down.

PNG still has a job. If a platform you upload to only accepts PNG or JPG, export the logo at 2x or higher. Doubling a screen's resolution quadruples its pixels, so a 1x logo looks soft on a high-density display.

One detail matters for wordmarks. Figma turns on Outline text by default when the selection includes a text layer (Figma help), and UIXport always outlines text in SVG exports. For a logo that is what you want: the letters are paths, so the wordmark looks the same whether or not the visitor has the font.

The longer version of this choice, with edge cases, is in SVG vs PNG for icons and logos.

What is the best image format for icons?#

SVG. Most icons already exist as vectors, so use the SVG version whenever you can. If all you have is a raster icon, use WebP with a fallback, as you would for any other raster image (MDN).

The harder question is how to ship them: inline SVG, an SVG sprite, separate files in <img> tags, or an icon font. For most new sites, inline SVG or an SVG sprite referenced with <use> is the better default, because the icons take their colour from CSS and are easier to make accessible. An icon font still makes sense in an older codebase built around icon classes. We compare all four in icon fonts vs SVG sprites vs inline SVG.

Clean markup matters more for icons than for anything else, because you ship dozens of them. SVG exported from Figma can carry attributes a browser does not need, such as layer ids. UIXport's Clean SVG Markup (Remove Figma properties) option, on by default for SVG rows, runs each file through SVGO, a tool that strips unneeded markup from SVG files, before it saves.

Which format suits illustrations and flat graphics?#

SVG when the illustration is built from flat shapes in Figma. PNG, or WebP at a high quality setting, when it includes photos, textures, grain or heavy detail.

A spot illustration made of a few dozen flat shapes is a natural SVG. It scales and stays small.

Now picture a hero illustration with a paper-grain texture, a photo cut into it and soft blurred shadows. SVG is a poor fit for photographic or purely bitmap images, even though an SVG can contain bitmaps (MDN). Once the artwork leans on raster content, the SVG becomes a wrapper around pixel data, or a huge pile of path detail. A raster file is simpler.

For raster versions of flat art, treat it like line art and prefer lossless, because compression fringes show on sharp edges. PNG is the lossless option every tool gives you. High-quality WebP can work too, but zoom in on the edges first.

Not sure? Export an SVG and a WebP of the same frame and compare the files.

What is the best image format for photos and hero images?#

AVIF or WebP, encoded lossy, with JPG as the fallback in a <picture> element. Photos hide lossy compression well, and WebP and AVIF generally compress better than JPEG and PNG (MDN).

AVIF is an image format based on the AV1 video format, with lossy and lossless modes. WebP is an image format whose lossy mode is based on the VP8 video codec, and it also has a separate lossless mode. Both support transparency. AVIF usually compresses slightly better than WebP, but it is not quite as well supported and it has no progressive rendering, so an AVIF file has to download fully before it shows.

Support, per caniuse as of October 2026:

Browser WebP, full support from AVIF, full support from
Chrome 32 85
Edge 18 121
Firefox 65 93
Safari on macOS 16.0 (partial from 14) 16.4 (partial in 16.1 to 16.3)
Safari on iOS 14 16.0

Both are close to universal now, but not quite there. MDN suggests a PNG or JPEG fallback in a <picture> element if you need to support browsers without WebP or AVIF. For photos, make that fallback JPG.

Is it worth the extra files? The 2024 Web Almanac found JPEG was still the most common format on mobile pages at 32.4% of images, with WebP at 12% and AVIF at 1.0%. Its authors argue that almost all the JPEGs, PNGs and GIFs on the web would be better served by a modern format.

A hero usually needs two densities as well. Export 1x and 2x, then let the browser pick:

html
<picture>
  <source srcset="hero.avif 1x, [email protected] 2x" type="image/avif" />
  <source srcset="hero.webp 1x, [email protected] 2x" type="image/webp" />
  <img src="hero.jpg" srcset="[email protected] 2x" alt="Team working at a long desk" />
</picture>

The browser picks a source it can use, and falls back to the <img> when none match (MDN: picture).

What is the best format for UI screenshots and product shots?#

WebP at a high quality setting, with PNG as the fallback. Screenshots are full of small text and hard edges, which show compression damage quickly, so either keep the quality high or go lossless.

The sources split here. web.dev groups screenshots with photos and suggests JPEG, lossy WebP or AVIF. MDN prefers lossless for screenshots, because blurring around text is so visible. Both are right, for different screenshots.

A dashboard screenshot is mostly flat colour, thin lines and 12 px labels. It behaves like line art: PNG, or WebP at the top of the quality range. A product shot of a phone on a desk is a photo with a screen in it, and lossy WebP or AVIF suits it, as long as the on-screen text survives.

The check takes a minute. Export WebP at Best (95%) and PNG, open both at 200% and look at the smallest text. If the WebP looks the same and is smaller, ship it with PNG as the fallback. If the text has fringes, stay with PNG.

Avoid JPG for flat UI. It is lossy only, so text edges pick up those fringes. And keep text that matters, such as a headline or a price, out of the image: text in an image cannot be selected, searched or zoomed, and is not accessible (web.dev).

Which image formats support transparency?#

PNG, WebP, AVIF and SVG all support transparency. JPG does not. For a cut-out product photo, WebP is the first choice and PNG the fallback.

Transparency is stored in an alpha channel, an extra value per pixel that says how see-through it is. JPEG has none, which is why PNG is the usual fallback for any image that needs transparency.

The trap is the cut-out photo: a sneaker or a headshot with the background removed, placed over a coloured section. As PNG it is lossless, which gives the highest quality at a much larger file size than other formats (web.dev). WebP can be lossy and still keep the alpha channel, which suits a photo far better. AVIF can too, with the support caveats above.

For flat transparent graphics, like a badge or a sticker with hard edges, SVG or PNG is still the cleaner choice.

What format should an Open Graph image be?#

JPG or PNG, at 1200 x 630 pixels and under 5 MB. Use JPG for photo-based cards and PNG for flat cards with text and shapes.

An Open Graph image is the picture that appears when someone shares your page link. It is set with the og:image meta tag. Here is what we checked, in October 2026:

  • The Open Graph protocol (ogp.me) defines og:image plus optional og:image:type, og:image:width, og:image:height and og:image:alt. It does not name a format or a size.
  • Facebook's guide to images in link shares recommends at least 1200 x 630 pixels, a ratio close to 1.91:1 so the image is not cropped, and a file no larger than 8 MB. The minimum is 200 x 200. It does not list file types.
  • LinkedIn's help page on shareable websites gives a minimum of 1200 x 627 pixels, a 1.91:1 ratio and a 5 MB limit. Images under 401 px wide show as a small thumbnail. Its link preview section does not list file types either.

None of these pages promise WebP, AVIF or SVG support in previews, and a broken share card is an expensive way to find out.

A 1200 x 630 frame meets both the Facebook and LinkedIn sizes. Facebook also suggests setting og:image:width and og:image:height so its crawler can render the image straight away, and using a new URL when you replace an image, or the old one keeps showing.

Steps: how to export WebP, AVIF, SVG and PNG from Figma#

Figma exports PNG, JPG, SVG and PDF on its own, according to its help center. WebP and AVIF need a plugin.

For logos, icons, fallbacks and share images, Figma's own export is enough. Add an export setting to the layer, pick PNG or JPG and a scale, or SVG (always 1x), and export. JPG gets an image quality option, and SVG has settings such as Outline text and Include "id" attribute.

For the modern formats, UIXport exports several formats in one pass, with one catch: in the Exporter, every format row applies to every checked item. Select a logo, a hero and a screenshot with WebP, PNG, SVG and AVIF rows and you get an SVG of the hero photo and an AVIF of the logo. So group assets by type and do one run per group:

Group Main rows Fallback row
Vector art (logos, icons) SVG PNG at 2x
Photos and heroes WEBP, plus AVIF on Pro JPG
Screenshots and cut-outs WEBP PNG
  1. Select one group. Open UIXport on the Exporter tab and select the frames of one group in Figma, for example every hero photo. They appear in the list, checked.
  2. Add one row per format. The Export as card starts with one PDF row. Set it to the group's main format, then click Add format for the fallback row. The new row is PNG: set it to JPG for photos and heroes, or leave it on PNG for screenshots, cut-outs and vector art.
  3. Pick the scales. Give each raster row a scale. For 1x and 2x of one format, add a second row with the same format at 2x. SVG ignores the scale and always exports at 1x, which is fine for vector art.
  4. Name the 2x files. Open the menu on a 2x row and type @2x in Filename suffix, so the file comes out as [email protected]. Click Done.
  5. Set the quality. Pick from the quality dropdown on each item in the list: High for photos, Best for text-heavy screenshots. Set every item, since picking one also changes the default for the rest, and leave the Quality Level slider alone afterwards, because moving it clears per-item choices. PNG and SVG ignore quality.
  6. Export. Click Export Selected (N Formats). Two or more files arrive together in one ZIP. Then select the next group and repeat.
  7. Write the markup. On the Dev tools tab, open Picture Tag, tick the Included formats and Resolutions you exported, set Fallback src format to the format of your fallback row and click Copy HTML.

Picture Tag writes markup for the first selected item and expects files named name.ext and [email protected], which is why step 4 matters. It is free with no cap.

WebP export is on the Free plan, with no cap. Grouping also keeps the pack small, because no file is spent on a format the asset does not need. AVIF export needs UIXport Pro, or one of the Free plan's 10 free Pro runs a month, at $4.99 a month or $49.99 a year.

Next steps#

Pick the format per asset, not per project. Keep a fallback for AVIF, and for WebP if older browsers matter to you. When the table above and your own eyes disagree, trust the export you can zoom into.

For the whole route from Figma frame to fast page, including sizing and compression, read image optimization for the web from Figma.

To export WebP, AVIF, SVG, PNG and JPG from Figma in one panel, try UIXport from Figma Community.

Questions

Is SVG or PNG better for a logo?

SVG, if the logo is vector artwork, because it stays sharp at every size and is usually small. Keep a PNG at 2x for platforms that only accept raster uploads.

Should I use WebP or AVIF for photos?

Either works well for photos. MDN says AVIF offers slightly better compression, but its browser support is newer and it has no progressive rendering. You can serve both in a picture element with a JPG fallback.

What format should an og:image be?

Use JPG or PNG. The Open Graph protocol does not name a format, and the Facebook and LinkedIn pages we checked list sizes, not file types, so a 1200 x 630 JPG or PNG under 5 MB is the safe choice.

Is JPG still worth using on a website?

Yes, as the fallback for photos and for share images. MDN calls JPEG a good fallback for photographs, but it has no transparency and blurs text and sharp edges.

Can Figma export WebP or AVIF?

Not on its own. Figma's help center lists PNG, JPG, SVG and PDF as its export formats, so you need a plugin such as UIXport, where WebP export is on the Free plan with no cap and AVIF needs Pro.

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.