A guide to common image formats
May 5, 2023
Common image formats include JPG, JPEG, PNG, GIF, SVG, WEBP, BMP and ICO.
This site also supports HEIC, HEIF, TIFF, PSD, PSB, AVIF, TIF, TGA, PPM, PGM, PBM and CR2.
Before looking at each format, let's start with raster and vector images.
Raster and vector images
Images are generally divided into raster and vector graphics.
A raster image encodes the colour value of every pixel inside a rectangular grid. Its smallest unit is the pixel, each pixel holds one colour, and the picture is shown through those colour values. Because of that pixel grid, a raster image loses quality when it is scaled. Common formats: JPG and PNG.
A vector image describes the picture with points, lines and polygons. It is used for simple shapes and stays sharp at any scale. Common format: SVG.
JPG
JPG is the most common image format. Almost every photo taken with a phone or camera is a JPG, and the web is full of them — by most estimates JPG accounts for roughly 70-80% of images online. Files usually use the .jpg or .jpeg extension.
JPG uses lossy compression, so quality drops and transparency is not supported, but colours are rich and files are small. It suits colourful photos, gradients and general-purpose use.
Crop an image Add a watermark to protect your copyright
PNG
PNG is another very common format, widely used for delivery over the web and for displaying assets. Compared with JPG it supports transparency, and images look sharper and more lifelike — one reason it is so widely used.
PNG is lossless, has rich colour and supports transparency. It suits general use, images that need high quality, and anything that needs transparency.
GIF
GIF is best known for memes and simple animations on social media — almost everyone online has seen one.
It supports frame animation and transparency and keeps files small, but the colour palette is simple and quality is modest. It suits animated stickers, simple logos and icons, not detailed photographic images.
Compress GIF files online for free
Split an animated GIF into separate images online for free
SVG
SVG is the only vector format browsers support. It is a scalable vector graphic described in XML, and because it stays sharp at any size it is ideal for icons shown on different screens.
It is vector-based, lossless, small and supports transparency and animation. It suits icons, logos, symbols and diagrams that must stay crisp.
WEBP
WEBP is a relatively new format introduced by Google. Its main strength: great visual quality and rich colour while the file is far smaller than JPG or PNG.
It supports transparency and animation, produces smaller files with better quality, and is increasingly used by websites to save bandwidth.
BMP
BMP stores raw image data and is the standard image format in Windows. It is uncompressed, so image data is preserved almost untouched — which makes it a source of original pixel data.
It keeps complete image data with very high quality, but files are large and rarely used on the web.
ICO
ICO is an icon file format. A single file can hold images in several sizes, and it is common for Windows system icons.
It supports transparency and is usually small. Website favicons use it: favicon.ico is shown on the browser tab.
HEIC
HEIC is an image format developed by Apple and has become the default photo format on iPhone, usually with the .heic or .heif extension.
Its compression is advanced, so files are smaller than with other formats while quality stays high, but compatibility is weaker.
View HEIC or HEIF images and export them as JPG, PNG or WEBP
TIFF
TIFF is a flexible raster format. Its structure is complex and can carry many kinds of image information and colour systems, which is why it is widely used. Files usually use the .tif or .tiff extension.
PSD
PSD is Adobe Photoshop's file format. It can hold large amounts of layer data and is the most widely used format in UI design, usually with the .psd or .psb extension.
Compression is light and layers add weight, so files are large, and few tools can display PSD.
View PSD or PSB images and export them as JPG, PNG or WEBP
AVIF
AVIF is a web image format based on the AV1 video codec. It is open and free, and supports full-resolution 10-bit and 12-bit colour as well as HDR.
Files are small, lossy or lossless compression is available, colours are rich, and more and more services support it.
TGA
TGA is one of the most widely used image formats on computers. It combines BMP-like image quality with JPEG-like file size.
It also has its own features: alpha channels and orientation. In CG work it is often used as a sequence output format for film and animation, thanks to its small size and clear results.
PPM
PPM is a simple format for portable pixmaps: colour (PPM), greyscale (PGM) and black-and-white (PBM). Files usually use the .ppm, .pgm or .pbm extension.