Skip to content
Filebird

Image formats explained: JPG, PNG, WebP, AVIF, HEIC, GIF, SVG

By the Filebird team · Updated October 18, 2026 · 7 min read

You have probably met this problem. A website rejects your photo because it "must be JPG". A colleague cannot open the picture you sent. A screenshot saved as PNG is ten times bigger than a photo that looks about the same. Someone says "just use WebP" and you have no idea whether that is safe advice.

Image formats look like a pile of arbitrary letters, but each exists for a reason, and the differences come down to a few ideas. Once you understand those ideas you can choose the right format in a few seconds and stop guessing. This guide walks through the seven formats you are most likely to meet, then gives you a decision table to keep.

The two ideas behind every format

First, raster versus vector. A raster image is a grid of coloured pixels, like a photograph. JPG, PNG, WebP, AVIF, HEIC and GIF are all raster. If you enlarge one far enough you see the squares. A vector image, such as SVG, stores shapes and curves as instructions ("a circle here, a line there"), so it can be drawn at any size without getting blurry.

Second, lossy versus lossless compression. Lossless formats shrink the file without changing a single pixel, a bit like zipping a document. Lossy formats throw away detail the eye is unlikely to miss, which makes files much smaller but means quality drops each time you save with lossy settings. Lossy suits photographs, where noise and gradients hide the loss. Lossless suits graphics with flat colour and sharp edges, where lossy artefacts show up as fuzz around text.

Add a third factor, transparency: whether the image can have see-through areas, as a logo on a coloured page needs. And a fourth, support: whether the program or website you are using can open the format at all.

JPG: the safe default for photos

JPG (also written JPEG) has been the standard for photographs for decades. It is lossy, handles millions of colours, and produces small files for photos. Every browser, phone, printer, email client and upload form understands it.

It has no transparency. Repeated saving degrades the picture, since each save loses a little more. And on screenshots, text and logos it produces faint blotchy halos around edges. When a form says "JPG only", or you do not know where the image will end up, JPG is the format least likely to cause trouble. Controlling the quality setting is how you balance size against appearance; there is more on that in how to reduce a photo's size for email and forms.

PNG: sharp graphics and screenshots

PNG is lossless and supports transparency. That makes it the natural choice for screenshots, diagrams, logos, icons and anything with text. The edges stay crisp, and you can save it again and again without any quality loss.

The cost is size. A photograph saved as PNG is typically much bigger than the same photograph as JPG, because lossless compression cannot discard the fine variation in a real-world image. So the rule is simple: PNG for flat graphics and things that need transparency, JPG for photographs. If you have a huge PNG photo that someone insists on emailing, converting it to JPG is often the fastest way to shrink it.

WebP: the modern all-rounder

WebP was designed for the web. It can be lossy or lossless, supports transparency, and can even be animated. For the same visual quality it usually gives smaller files than JPG or PNG, which is why many websites serve it.

Support is now broad in current browsers, but the format is still less universal than JPG outside the web. Some older desktop programs, document editors, printers and upload forms do not accept it, and you may have seen the annoying case where you save an image from a website and it turns out to be a WebP that your program refuses to open. For publishing on your own website, WebP is a good choice. For sending to other people or uploading to forms, convert it back to JPG or PNG with Convert image.

AVIF: smaller still, with caveats

AVIF is a newer format that often achieves even smaller files than WebP at comparable quality, and supports transparency and high colour depth. It is excellent for web images when every kilobyte counts.

The caveats are compatibility and speed. Fewer programs can open it, and encoding can be slow. It is a format to publish on a website, not one to email or hand to a print shop. If you receive an AVIF file you cannot use, convert it to JPG or PNG first.

HEIC: what your iPhone saves

HEIC (or HEIF) is the default photo format on iPhones. It stores photos at good quality in roughly half the space of JPG, which is why Apple chose it. It can also hold extras such as Live Photo data and depth information.

The trouble is that outside Apple's ecosystem many systems cannot read it. Windows may need an extension, and most web forms refuse it. The usual fix is to convert to JPG, either with the phone's compatibility setting (Settings, Camera, Formats, Most Compatible) or after the fact with HEIC to JPG. The two formats are compared in more detail in HEIC vs JPG. Converting is one-way in practice: keep the originals if you might want the extra detail later.

GIF: short loops, not photos

GIF supports animation and simple transparency, which is why it survives for reaction clips and tiny looping animations. But it is limited to 256 colours per frame, so photographs look grainy, and file sizes for longer animations are surprisingly large.

For a still image, GIF is a bad choice. For a short animation, a video clip is usually smaller and sharper, though a GIF works anywhere without a play button. If you need a short loop from a video, Video to GIF can make one, and the guide to small GIFs explains how to keep it light.

SVG: logos and icons at any size

SVG is a vector format written as text. Because it describes shapes rather than pixels, a logo in SVG is perfectly sharp on a business card or a billboard, and the file is usually tiny. It can be edited in a text editor or a drawing program, and styled with code.

SVG is the wrong format for photographs. And many places that accept images do not accept SVG, such as social media uploads and most forms, because it can contain code. When you need a pixel version of a vector logo, SVG to PNG renders it at the size you choose, with a transparent or coloured background.

Decision table

What you have Best format Why
Photo to send to anyone or upload to a form JPG Opens everywhere, small files
Photo for your own website WebP or AVIF Smaller at similar quality, as long as you accept browser-only use
iPhone photo that will not upload JPG HEIC is not accepted by many sites
Screenshot or document scan with text PNG Lossless, sharp edges
Logo that needs a see-through background PNG, or SVG if it is vector Transparency supported
Icon or logo to scale to any size SVG Resolution independent
Short looping animation GIF, or a short video GIF works everywhere, video is smaller
Archive of originals you may edit later Keep the original, plus a copy as PNG or high-quality JPG Avoid repeated lossy saves

Converting without hurting quality

A few habits prevent most damage. Always convert from the best original you have, never from a copy that was already compressed. Converting a JPG to PNG does not restore lost detail, it only makes a bigger file of the same picture. Going from PNG to JPG will flatten transparency to a solid colour, so choose a background you want. Avoid round trips like JPG to WebP to JPG, since each lossy step costs a little quality.

If size is the real problem rather than format, Compress image lets you set a quality level or a maximum size, and can switch format at the same time.

Try it: pick a photo and a screenshot, convert each with Convert image, and compare the sizes to see the rules for yourself.

Frequently asked questions

Which image format has the best quality?

Quality depends on the settings and the original, not only the format. PNG and lossless WebP keep every pixel. For photos, a high-quality JPG, WebP or AVIF will look the same to the eye and be much smaller.

Should I use WebP instead of JPG everywhere?

Not everywhere. WebP is good for websites, but forms, email attachments, older software and print services still expect JPG. Use WebP where you control the destination and JPG where you do not.

Why does my PNG look worse after converting to JPG?

JPG is lossy and cannot represent sharp text or flat colour as cleanly. It also has no transparency, so see-through areas become a solid colour. Keep PNG for graphics and use a higher JPG quality if you must convert.

Can I turn a JPG into SVG?

Not in a useful way. SVG describes shapes, and a photo has none to describe. Automatic tracing can approximate a simple logo, but it will not turn a photograph into a clean vector.

Tools mentioned in this guide

Keep reading

Browse all guides