Mello
Guide

Image Formats Explained: PNG, JPG, WebP, AVIF, and More

Updated May 21, 2026

Two families of image formats

Every image file is one of two kinds. Raster images are grids of pixels — photographs and most graphics. Vector images are sets of shapes described mathematically, which can scale to any size without blurring. Almost every format below is raster; SVG is the one vector format.

Among raster formats, the other key split is lossy versus lossless. Lossy formats discard detail to shrink the file; lossless formats keep every pixel exactly. Here are the common formats and what they are for.

JPG (JPEG)

The classic photo format. Lossy, no transparency, and supported by absolutely everything. Three decades old and still the universal choice for photographs that need to open anywhere. Compare it in PNG vs JPG.

PNG

Lossless, with full transparency. The right choice for logos, icons, screenshots, and any graphic with sharp edges or text. Poor for photographs, where it produces very large files.

WebP

Google's modern format. Lossy or lossless, supports transparency and animation, and 25-35% smaller than JPG or PNG at similar quality. The default for images on a modern website. See what a WebP file is.

AVIF

The newest mainstream format, based on the AV1 video codec. Compresses even smaller than WebP and supports HDR and wide color, but is slower to encode. See AVIF vs WebP.

GIF

Old and limited — a maximum of 256 colors per frame — but still used for short, simple animations. For anything richer, WebP is smaller and sharper.

SVG

The vector format. Instead of pixels, an SVG stores shapes, so it stays perfectly sharp at any size and is tiny for simple graphics. Ideal for logos and icons; useless for photographs. Clean one up with an SVG optimizer.

HEIC

Apple's high-efficiency format, the default on iPhones. About half the size of a JPG, but barely supported outside Apple devices — browsers cannot display it. See HEIC vs JPG.

BMP and ICO

BMP is an old, essentially uncompressed format that produces huge files — rarely the right choice today. ICO is the Windows icon container, used mainly for the favicon shown in a browser tab.

A quick reference

Format Type Best for
JPG Lossy raster Photographs, anywhere
PNG Lossless raster Logos, screenshots, transparency
WebP Lossy or lossless raster Modern websites
AVIF Lossy or lossless raster Maximum compression
GIF Lossless raster Simple animations
SVG Vector Logos and icons
HEIC Lossy raster iPhone photo storage

Converting between formats

You can move an image between formats freely. The image converter handles common conversions; for the web specifically, JPG to WebP and PNG to WebP are the most useful. Every conversion runs in your browser, with nothing uploaded.

To choose the right format for a given job, see the best image format for the web.

Frequently asked questions

The most common are JPG for photographs, PNG for graphics and transparency, WebP and AVIF for efficient modern web images, GIF for simple animation, SVG for vector logos and icons, and HEIC for iPhone photos.

Tools mentioned in this guide

Image Format Converter
Convert PNG, JPEG, and WebP — all in your browser.
Image
JPG to WebP Converter
Convert JPG images to WebP — runs entirely in your browser, with no upload.
Image
PNG to WebP Converter
Convert PNG images to WebP — runs entirely in your browser, with no upload.
Image
SVG Optimizer
Strip whitespace and comments from SVG files.
Image

Related guides

WebP vs PNG: Which Image Format Should You Use?
WebP vs PNG compared on file size, transparency, quality, and browser support — plus a clear answer on when to use each and how to convert between them.
Comparison
WebP vs JPG: Which Should You Use for Web Images?
WebP vs JPG compared on file size, quality, transparency, and support — when to use each format for photos and web graphics, and how to convert.
Comparison
The Best Image Format for the Web in 2026
Which image format to use on a website — WebP, AVIF, JPG, PNG, or SVG. A practical guide to picking the right format for speed, quality, and compatibility.
Guide