Image File Formats Explained: JPG, PNG, WebP, AVIF, GIF, SVG, HEIC
A plain-English guide to every common image format: how each one stores pictures, what it's good and bad at, and a simple chooser for photos, logos, web and print.
Every image you save has a format: the letters after the dot, like .jpg, .png or .webp. The format decides how the picture is stored, how big the file is, whether it can have a transparent background or move, and which apps can open it.
Pick the wrong one and you get a blurry logo, a 10 MB screenshot or a file nobody can open. Pick the right one and images look sharp, load fast and work everywhere. This guide explains the common image file formats in plain English, then gives a simple chooser for everyday jobs.
Lossy vs lossless, raster vs vector
Two ideas explain almost everything about formats.
Lossy vs lossless. Lossy formats (JPG, most WebP, AVIF, HEIC) make files small by discarding detail you're unlikely to notice. Lossless formats (PNG, GIF, lossless WebP, TIFF, BMP) keep every pixel exactly, so files are bigger but nothing is ever lost.
Raster vs vector. Raster formats store a grid of pixels at a fixed size; enlarge them too far and they blur. Vector formats (SVG, EPS, AI, PDF graphics) store shapes as instructions, so they're sharp at any size. Photos are always raster; logos and icons are best as vectors.
JPG (JPEG)
What it is: the classic photo format, around since 1992, readable by every device and app.
Good at: photographs. It compresses them very efficiently, and at high quality the loss is invisible.
Bad at: sharp text and flat graphics (edges get fuzzy), transparency (it has none) and repeated editing (each save loses a little more).
Use it for: photos to email, upload, print or share when you need maximum compatibility.
PNG
What it is: a lossless format from the 1990s, designed as a better GIF.
Good at: screenshots, logos, icons, diagrams and anything with sharp edges or text. It supports full transparency.
Bad at: photographs, which become very large files.
Use it for: logos with transparent backgrounds, screenshots, graphics, and images you're still editing.
WebP
What it is: a modern format from Google that can be lossy or lossless, with transparency and animation.
Good at: almost everything on the web. Photos are typically 25–35% smaller than JPG; graphics are much smaller than PNG.
Bad at: compatibility with some older apps and upload forms.
Use it for: website images. Read more in what is the WebP image format.
AVIF
What it is: a newer format based on the AV1 video codec.
Good at: squeezing photos even smaller than WebP at the same quality, with support for HDR and wide colour.
Bad at: encoding speed (it's slow to create) and support in older apps; all major current browsers display it.
Use it for: high-traffic websites that can serve AVIF with a fallback. Need to open one elsewhere? Convert with AVIF to JPG or AVIF to PNG.
GIF
What it is: a format from 1987, famous for short looping animations.
Good at: simple animations that play everywhere, including email.
Bad at: colour: it's limited to 256 colours, so photos look grainy, and transparency is on-or-off with jagged edges. Animated GIFs are also very large compared with video.
Use it for: small reaction animations and simple graphics in email. For a still image, convert GIF to PNG.
SVG
What it is: a vector format written in text (XML), the web's standard for scalable graphics.
Good at: logos, icons and illustrations: tiny files, perfectly sharp at any size, easy to recolour with code.
Bad at: photos (it can't really hold them), and some apps and social networks don't accept it.
Use it for: logos and icons on websites; keep it as the master for brand assets. For apps that need pixels, convert SVG to PNG.
HEIC / HEIF
What it is: the efficient photo format used by iPhones (and some Android phones).
Good at: storing high-quality photos at about half the size of JPG, plus Live Photos and depth data.
Bad at: compatibility outside Apple devices; many websites and Windows apps can't open it without extras.
Use it for: your phone's photo library. Convert to JPG for sharing; see how to convert HEIC to JPG.
TIFF, BMP and RAW
TIFF is a flexible, usually lossless format used in printing, scanning and archiving. Files are large, but every detail is kept.
BMP is an old, uncompressed Windows format. Files are huge for what they hold; convert BMP to JPG to share them.
RAW files (CR3, NEF, ARW, DNG and others) are unprocessed data straight from a camera sensor. Photographers edit them in specialised software and export JPGs or TIFFs.
Which format should you use?
- Photo to share, email or upload: JPG.
- Photo for your website: WebP (or AVIF with a fallback).
- Logo or icon: SVG master; PNG with transparency for apps that need pixels.
- Screenshot with text: PNG (or WebP for the web).
- Graphic with a transparent background: PNG or WebP.
- Short animation: GIF for email; video or animated WebP for websites.
- Printing: high-quality JPG or TIFF, with enough pixels for the size.
- iPhone library: keep HEIC; make JPG copies to share.
Converting between formats
Converting changes how an image is stored, not what it shows. Two rules keep quality high:
1. Convert from the best original you have. Converting a heavily compressed JPG to PNG doesn't restore lost detail.
2. Avoid round trips through lossy formats. JPG → PNG → JPG → PNG loses a little each time it passes through JPG.
Our image converter handles the everyday conversions between JPG, PNG and WebP in your browser, and dedicated pages cover GIF, BMP, SVG and AVIF.
File size comparison
To make the differences concrete, here's roughly how big the same 12-megapixel photo is in each format at good quality:
- BMP: about 36 MB (uncompressed).
- TIFF: 15–35 MB (lossless).
- PNG: 15–25 MB (lossless, photos compress poorly).
- JPG: 2–5 MB.
- HEIC: 1–3 MB.
- WebP: 1.5–3.5 MB.
- AVIF: 1–2.5 MB.
For a simple logo, the order changes completely: SVG might be 5 KB, PNG 20 KB and JPG larger, with fuzzy edges.
Formats and colour
Most everyday images use 8 bits per colour channel (about 16.7 million colours), which is what JPG supports. HEIC, AVIF, TIFF and PNG can also store 10 or 16 bits per channel, which keeps smoother gradients for editing and HDR displays. Phones increasingly capture wide-colour (Display P3) images; converting them to JPG for sharing is fine, though very saturated colours may look slightly different on some screens.
Formats and metadata: what else is in the file
Besides the picture, most image files carry hidden details called metadata. JPG and HEIC photos from a phone usually include EXIF data: the date and time, camera settings and, if location was on, the GPS position where it was taken. PNG and WebP can hold metadata too, though screenshots usually carry little. Many social networks strip location data when you upload, but email attachments and file-sharing links often keep it. If privacy matters, turn off location for your camera, or remove the metadata before sharing; re-saving through a converter or compressor usually drops most of it.
Frequently asked questions
What is the best image format?There isn't one best format: JPG for shared photos, WebP for websites, PNG for graphics and transparency, SVG for logos.
Which image format has the best quality?Lossless formats (PNG, TIFF, lossless WebP) keep every pixel. For photos, high-quality JPG or WebP look the same at a fraction of the size.
Which formats support transparency?PNG, WebP, AVIF, GIF (on/off only) and SVG. JPG doesn't.
What's the smallest image format?For photos, AVIF and WebP produce the smallest files at good quality.
Is JPEG the same as JPG?Yes, two names for the same format.
Why won't my phone photo open on my computer?It's probably HEIC. Convert it to JPG, or install HEIF support on Windows.
Should I save photos as PNG for better quality?No. PNG photos are much larger and look the same as high-quality JPGs.
Can I turn a PNG into an SVG?Only by tracing it with vector software; a format conversion alone can't create vector shapes.
Which format should I use for a logo?SVG if possible, otherwise a transparent PNG.
What's the difference between HEIC and HEIF?HEIF is the standard; HEIC is the file type that uses it, common on iPhones.
Which formats do websites support?All modern browsers show JPG, PNG, GIF, WebP, AVIF and SVG.
Key takeaways
Formats differ in compression (lossy or lossless), type (raster or vector), transparency and compatibility. Use JPG for shared photos, WebP or AVIF for websites, PNG for screenshots and transparent graphics, SVG for logos, and convert HEIC to JPG when sharing.




