SVG Lab

7 November 2026 · Usman Bashir

SVG vs PNG vs WebP: which format to use, measured

Use SVG for logos, icons, charts and flat illustrations, WebP for photos and anything with a photo in it, and PNG only when the pixels must stay exact and the file must open everywhere. We measured it: a flat logo was 716 bytes as an SVG and 41,938 bytes as a 1024-pixel PNG. An app screen with an aerial photo was 1.4 MB as a PNG and 139 KB as a WebP, and you cannot tell them apart.

The tip of a black bird logo shown 8 times larger: on the left a 128-pixel PNG with visible square pixels, on the right the SVG with a smooth edge.
The same logo, 8 times larger than a 128-pixel export. Left: the PNG, 4,249 bytes. Right: the SVG, 716 bytes, drawn fresh at full size. Rendered in Chrome on 5 November 2026.

What is the difference between SVG, PNG and WebP?

SVG stores shapes: a short text description of paths, colours and text that the browser draws at whatever size you show it. PNG and WebP store pixels: a fixed grid of coloured dots, so they are only sharp at the size they were made. PNG is lossless and opens in every program. WebP can be lossless or lossy, which means it can throw away detail your eye will not miss, and every current browser shows it. So the real question is not which format is best, but what is in the picture: shapes or a photo.

How big is each format? Our test

We took two real images. The first is a flat bird logo from the SVG Lab repository, a single path, 716 bytes as an SVG. We rendered it in Chrome at 128, 512 and 1024 pixels wide and saved each render as PNG and WebP. The second is an app screen with an aerial photo map, one of the Toolshed screens a Claude model designed through the SVG Lab MCP and its Design Engine, saved as a 739 by 1600 PNG. We saved it again as lossless WebP and as WebP at quality 80, all with Pillow 12.3.

Bar chart of file sizes. Flat logo at 1024 pixels: SVG 716 bytes, lossless WebP 12,984, PNG 41,938. App screen with a photo: WebP quality 80 139,446 bytes, lossless WebP 882,060, PNG 1,396,101.
File sizes for both test images, measured 5 November 2026.
ImageSVGPNGWebP losslessWebP quality 80
Logo, 128 px7164,2491,5701,582
Logo, 512 px71619,0756,2906,642
Logo, 1024 px71641,93812,98414,416
App screen with photo, 739 x 1600not tested1,396,101882,060139,446

The SVG stays 716 bytes at every size, because the browser draws it fresh each time. The pixel formats grow with the size you export. On the flat logo, lossy WebP was no smaller than lossless WebP: there is nothing to throw away in two flat colours.

When should you use SVG?

Use SVG for anything made of shapes: logos, icons, charts, diagrams and flat illustrations. It is the smallest of the three for these, it is sharp on every screen, and you can change its colours with CSS or edit its text later. The one thing SVG cannot do well is a photo: it can only carry one by embedding the photo's own pixel data inside it, which makes the file bigger than the photo alone. If your logo exists only as a PNG, trace it back to vector paths first; our image to SVG test shows what a trace gives you, and how to make an SVG file smaller shows how to tidy it.

When should you use WebP instead of PNG?

Use WebP for photos and for anything with a photo in it. At quality 80 our photo screen dropped from 1,396,101 bytes to 139,446, about ten times smaller, and the average pixel moved by 2 levels out of 255, which you cannot see.

The same zoomed crop of an aerial photo map with price tags, as PNG on the left and WebP at quality 80 on the right, looking the same.
A crop of the Toolshed map screen, designed by Claude Opus 5.5 through the SVG Lab MCP with a stock aerial photo, zoomed about 1.9 times. Left PNG, right WebP at quality 80.

Keep PNG for files that leave the web: a screenshot someone will edit, an image for a tool that does not read WebP, or a source file you will export again later. On a website, lossless WebP gives the same exact pixels in a smaller file: 37 percent smaller than PNG on our photo screen, 69 percent on the logo.

Which format should you pick?

A decision card: logos, icons, charts and flat illustrations use SVG; photos use WebP; screenshots that must stay exact use PNG or lossless WebP; files someone will edit use SVG for vector and PNG for pixels.
Pick by what is in the picture.

The SVG Lab editor exports SVG, PNG and PDF from the same drawing, so you can keep the SVG for the site and hand a PNG to anyone who needs one. And if you need the logos, icons and illustrations made in the first place, the SVG Lab MCP lets Claude, ChatGPT, Codex or Cursor draw them through SVG Lab's Design Engine as real vector shapes, ready to export as SVG.

How we checked

Frequently asked questions

Is SVG better than PNG?

For logos, icons, charts and flat illustrations, yes: our test logo was 716 bytes as an SVG and 41,938 bytes as a 1024-pixel PNG, and the SVG stays sharp at every size. For photos, no: an SVG cannot store a photo efficiently, so use WebP or PNG.

Is WebP better than PNG?

For photos, by far: an app screen with an aerial photo was 1,396,101 bytes as a PNG and 139,446 as a WebP at quality 80, with no difference you can see at normal size. Even lossless WebP beat PNG: 37 percent smaller on the photo screen and 69 percent smaller on the logo.

When should I still use PNG?

Use PNG when the pixels must stay exactly as they are and the file has to open in any program, for example a screenshot you send to someone to edit, or an image for a tool that does not read WebP. On a website, lossless WebP does the same job in a smaller file.

Can SVG hold a photo?

Only by embedding the photo inside it as PNG or JPEG data, which makes the file bigger than the photo alone. Keep photos as WebP and use SVG for the shapes, text and icons around them.

How do I turn a PNG logo into an SVG?

Trace it. SVG Lab's Auto-trace turns a PNG into vector paths in the browser and shows the path count and size before you place it; a trace is usually bigger than a hand-made SVG, so tidy it with SVGO afterwards.

Draw logos and icons as vectors with the SVG Lab MCP