Skip to main content

Image formats compared

All ten image formats this site handles, on one page. Scan the table for the differences, check the use-case list for a quick answer, then jump to the format you want to know more about.

Claims like "30% smaller" depend heavily on which image was saved and with what settings. So one photo and one graphic were saved in every format and the file sizes measured; the results are below, unedited.

All 10 formats side by side

FormatCompressionTransparencyAnimationTypical useBrowser displayThis converter
PNGLosslessYes (including partial)No (APNG is separate)Logos, screenshots, images with textAllRead · Save
JPGLossyNoNoPhotos, files that must open anywhereAllRead · Save
WebPLossy and losslessYesYesPhotos and graphics on websitesAllRead · Save
AVIFLossy and losslessYesYesWeb images that need to be as small as possibleAll currentRead · Save (browser-dependent)
GIFLossless (256-color limit)On/off onlyYesShort animations, small flat graphicsAllRead · Save
BMPUsually noneNoNoOld software or devices that only take BMPAllRead · Save
ICOContainer for PNG or BMPYesNoFavicons, Windows iconsAllRead · Save
TIFFNone, LZW, JPEG and othersYesNo (multi-page possible)Scans, print, archivingSafari onlyRead
HEICLossyYesNoiPhone photosSafari only (17+)Read
SVGVector (shapes written as text)YesYesLogos, icons, simple illustrationsAllRead · Save

The browser column shows whether an <img> displays the file directly in current Chrome, Edge, Firefox and Safari as of November 2026. The converter column shows whether this site can read the format (input) and save to it (output).

Which format should I use?

If you needUseWhy
Sending a photo or uploading it anywhereJPGIt opens on whatever device or app the other side uses. Quality 80–90 is enough for most photos. WebP vs JPG →
Photos on a website you controlWebP (AVIF if you can)In the measurement below, at equal quality WebP was about 20% and AVIF about 36% smaller than JPG. Reducing image size for the web →
Logos, screenshots, text-heavy imagesPNG or lossless WebPText edges stay sharp. On the measured graphic, lossless WebP came out 31% smaller than PNG. PNG vs JPG →
A transparent backgroundPNG or WebPJPG and BMP have no transparency, and GIF drops soft shadows and anti-aliased edges.
Favicons and app iconsICO (+ PNG)One ICO file can hold 16, 32 and 48 px versions, so each size gets its own tuned image. Favicon generator →
A logo that has to scale to any sizeSVGOnly worth it if the original is vector. Converting a PNG to SVG gives a redrawn approximation. Before converting PNG to SVG →
Using iPhone photos (HEIC) on Windows or the webConvert to JPGOutside Safari and Apple devices, HEIC usually won't open directly. HEIC → JPG →
Meeting an upload size limit (e.g. under 1 MB)JPG or WebPReducing the pixel dimensions first loses less detail than pushing quality down alone. Compress to a target size →
Enlarging pixel artPNGNo loss, so pixel edges survive. Scale by whole numbers without smoothing to keep them crisp. Pixel art upscaler →

The same images saved in every format

The numbers below were measured for this page in November 2026, using two test images. One is a photo: the strip of two photos from the guides (a chicken dish and a dog), taken by the site's operator, scaled to 600×394. The other is a 512×512 badge graphic drawn for the test, with a transparent background, a soft semi-transparent shadow and text.

Files were saved with the Node.js image library sharp (0.35.5, libvips 8.18.7) at its default settings, not with this site's converter. Browsers ship different encoders, so the converter's byte counts won't match exactly, but the ranking and rough ratios hold. sharp can't write BMP or ICO, so those files were assembled by hand from the raw pixels and PNG data, following each spec. HEIC can't be produced with this tool and is left out; the HEIC section quotes the guide's measurement instead.

The two test images: on the left, a photo strip of a chicken dish and a dog; on the right, a badge graphic with a yellow star and the text LV 3 inside a blue circle

Photo (600×394)

Format · qualitySizePSNRNote
AVIF 5021.3KB34.0dB
WebP 8039.2KB36.7dB
JPG 8050.5KB36.8dB
JPG 9072.3KB39.9dB
GIF181.6KB–reduced to 256 colors
WebP lossless259.0KBlossless
TIFF (LZW)466.1KBlossless
PNG598.9KBlossless
BMP 24-bit692.6KBlosslessuncompressed

The number after a format is its quality setting. PSNR measures how close the result is to the original pixels; higher means closer. The same quality number doesn't mean the same quality: JPG 80 and WebP 80 land at almost the same PSNR (36.8 dB vs 36.7 dB), while AVIF 50 drifts further at 34.0 dB. Keep in mind the source is a small image that had already been saved as JPG once. A full-size photo straight from a camera produces much bigger numbers across the board.

Photo size at equal quality (PSNR)

Target PSNRJPGWebPAVIF
36dB45.5KB35.8KB (21% smaller)29.0KB (36% smaller)
38dB58.4KB45.9KB (21% smaller)37.3KB (36% smaller)
40dB73.0KB58.1KB (20% smaller)46.9KB (36% smaller)

JPG, WebP and AVIF were saved at every quality from 20 to 98 in steps of 2, and the size at each target PSNR was estimated by drawing a straight line between the two nearest measurements. At all three points WebP was about 20–21% smaller than JPG and AVIF about 36% smaller. The WebP vs JPG guide, measured on two full photos, found WebP 23–30% smaller, so expect that much spread from photo to photo.

Graphic (512×512)

Format · qualitySizeNote
SVG665Bshapes written as text
ICO 16+32+486.2KBthree images: 16, 32, 48 px
AVIF 6010.4KBlossy
GIF12.6KBall semi-transparent pixels lost
PNG (256 colors)18.3KBPNG reduced to 256 colors
WebP lossless24.3KB
WebP 9025.8KBlossy
JPG 9031.2KBtransparent area filled white
ICO 16+32+48+25634.4KBthe 256 px image alone is 28.2KB
PNG35.4KB
TIFF (LZW)54.8KB
BMP 32-bit1.0MBuncompressed

JPG has no transparency, so it was saved on a white background. With a graphic the ranking looks very different from the photo. The SVG, which simply writes the shapes as text, is the smallest at 665 bytes, and lossless WebP is 31% smaller than PNG. GIF looks small at 12.6 KB, but none of the original's 30,655 semi-transparent pixels survived.

The lower-right edge of the same badge at 3x zoom on a dark background. PNG keeps the soft shadow, GIF loses the shadow entirely, and JPG fills the formerly transparent area with white
On a dark background the difference is obvious. GIF only allows each pixel to be fully transparent or fully opaque, so the shadow disappears; JPG has no transparency at all and leaves a white square.

What to know about each format

PNG .png

PNG is lossless, but its file size varies a lot with the program and settings used to save it. The test badge came to 35.4 KB at default settings, 33.5 KB at maximum compression, and 18.3 KB once reduced to a 256-color palette.

It's a poor fit for photos: the 600×394 photo was 598.9 KB as PNG and 72.3 KB as JPG 90, more than eight times smaller. Keep photos in PNG only when they must not lose any quality, such as intermediate files during editing.

Animated PNG (APNG) plays in browsers, but this converter saves only the first frame as a still image. PNG is also the default for enlarging pixel art; scale by whole numbers without smoothing so the edges stay crisp.

Related conversions: HEIC → PNG · WebP → PNG · PNG → JPG · JPG → PNG · PNG → ICO · PNG → SVG

↑ Back to table

JPG .jpg .jpeg .jpe .jfif

JPG has no transparency, so converting a transparent PNG to JPG fills the transparent areas with a single color. This converter lets you choose that color; the default is white.

Quality numbers mean different things in different encoders, so "quality 80" in another program isn't guaranteed to look the same. Every save throws away detail again, so edit from the original and save to JPG once, at the end.

JPGs taken on a phone often carry the location where the photo was taken (GPS). This converter strips EXIF by default, and keeping it is only offered for JPG-to-JPG conversion.

Related conversions: HEIC → JPG · WebP → JPG · PNG → JPG · JPG → PNG

↑ Back to table

WebP .webp

WebP's lossy and lossless modes are effectively two different codecs. Use lossy for photos and lossless for logos and screenshots. On the test graphic, lossless WebP was 24.3 KB, 31% smaller than PNG at 35.4 KB.

Lossy WebP stores color at half the resolution in each direction. Red text and thin colored lines can smear, so save text-heavy images as lossless.

Browsers handle it fine, but older image editors and some upload forms still reject .webp. Animated WebP exists, though this converter saves only the first frame.

Related conversions: WebP → JPG · WebP → PNG

↑ Back to table

AVIF .avif

AVIF produced the smallest files for both the photo and the graphic in this test, about 36% smaller than JPG at equal PSNR. The trade-off is slower encoding.

Current Chrome, Edge, Firefox and Safari all display it, but saving to AVIF from inside the browser is still limited to some browsers. This converter only offers AVIF as an output when the browser you're using can actually encode it.

Older programs and some upload forms may not open it, so it suits a website you control better than files you send to other people.

More about AVIF →

↑ Back to table

GIF .gif

GIF is limited to 256 colors per frame. The test photo saved as GIF was 181.6 KB, 2.5 times the JPG 90 (72.3 KB), and the missing colors are faked with dot patterns that make surfaces look grainy.

Transparency is on or off per pixel, so soft shadows and smooth edges disappear (see the zoomed image above).

When this converter reads an animated GIF it uses the first frame only, and saving to GIF produces a single still image. For small graphics with few colors, GIF is still compact and opens in very old software.

↑ Back to table

BMP .bmp .dib

BMP is normally uncompressed, so its size depends only on width × height × bytes per pixel, not on the content. The 600×394 photo at 24 bits is 600 × 394 × 3 = 709,200 bytes plus a 54-byte header: 692.6 KB.

BMPs made by this converter are 24-bit with no transparency; transparent areas are filled with the background color you choose.

Unless an old program or device accepts only BMP, there's little reason to use it. For lossless storage PNG is far smaller (1.0 MB vs 35.4 KB for the test graphic).

More about BMP →

↑ Back to table

ICO .ico

ICO is less an image format than a container that holds several sizes of the same picture in one file. Since Windows Vista, each size can be stored as compressed PNG data.

An ICO of the test badge with 16, 32 and 48 px images was 6.2 KB; adding a 256 px image took it to 34.4 KB. That one 256 px image accounts for 28.2 KB, so a favicon for the web usually only needs the small sizes.

This converter's ICO output holds a single square image up to 256×256, centered if the source isn't square. To put several sizes in one file, use the favicon generator.

More about ICO →

Related conversions: PNG → ICO

↑ Back to table

TIFF .tiff .tif

TIFF is a wrapper that can use several compression schemes (none, LZW, ZIP, JPEG and more) and hold multiple pages. Whether a given TIFF opens depends on which scheme is inside.

For the test photo, an LZW-compressed TIFF (466.1 KB) was smaller than PNG (598.9 KB), but for the graphic TIFF was larger (54.8 KB vs 35.4 KB). Even among lossless formats, the ranking flips with the image.

Among browsers only Safari displays TIFF directly. This converter decodes TIFF itself but converts only the first page of a multi-page file, and it can't save to TIFF.

More about TIFF →

↑ Back to table

HEIC .heic .heif

An iPhone saves HEIC when Settings > Camera > Formats is set to High Efficiency, and JPG when it's set to Most Compatible. With Settings > Photos > Transfer to Mac or PC set to Automatic, photos are often converted to JPG on the way to a computer.

sharp can't write HEIC, so it isn't part of this page's measurement. In the HEIC guide, compared at equal PSNR on two of the operator's photos, HEIC was about 37–39% smaller than JPG (test files encoded with libheif, not by an iPhone).

Apart from Safari 17 and later, browsers can't display HEIC, and Windows needs an extension to open it. This converter decodes HEIC with an in-browser decoder, so it takes longer than other formats, and it can't save to HEIC.

Related conversions: HEIC → JPG · HEIC → PNG

↑ Back to table

SVG .svg

SVG is a text file describing shapes, not pixels. The test badge's SVG source is 665 bytes, about 2% of the same design as a 512 px PNG (35.4 KB), and it can be scaled up any amount without breaking up.

Images with continuous color changes, like photos, can't be turned into shapes. This converter's PNG → SVG reduces the image to a few colors and traces the outlines, so it only suits simple logos and icons.

An SVG has no fixed pixel size, so converting it to PNG means choosing how many pixels to render. SVG files can also contain scripts, which is why many services block SVG uploads for security.

More about SVG →

Related conversions: PNG → SVG

↑ Back to table