Image formats: which one to use, and when
A plain guide to the common image formats, how compression works, and how to get a file under a size limit without ruining it.
The short answer
Use JPG for photos you send or upload: it works everywhere. Use PNG for screenshots, logos and anything with text or transparency. Use WebP for pictures on a website: smaller than JPG at the same quality. Use PDF when a form asks for a document.
Lossy and lossless
Lossy formats (JPG, WebP, AVIF) throw away detail the eye barely notices, and a quality setting decides how much. Lossless formats (PNG, TIFF, BMP) keep every pixel, so they are larger. Converting a JPG to PNG does not bring back lost detail; it only makes the file bigger.
Getting under a size limit
File size depends on three things: the format, the quality setting and the number of pixels. The best order is: choose a lossy format, lower the quality while the picture still looks good, and only then reduce the dimensions. That is what the maximum file size setting of this tool does automatically.
How big should a photo be?
For a screen, 1600 to 2000 pixels on the long side is plenty. For a form that asks for a file under 100 KB, around 1000 pixels. For a 10 × 15 cm print at 300 DPI, 1200 × 1800 pixels.
Transparency
PNG, WebP, AVIF, GIF, TIFF and ICO can have transparent areas; JPG, BMP and PDF pages cannot. When you convert to a format without transparency, those areas must be filled with a colour, normally white.
HEIC photos from iPhones
iPhones save photos as HEIC to use less space. When you share them, the phone often converts them to JPG, but files copied to a computer or cloud folder stay HEIC, and Windows and many websites cannot open them. Converting to JPG solves it.
Hidden data in photos
Photos contain EXIF data: date, device and often the GPS position. It travels with the file when you send it as an attachment. Saving the picture again without that block removes it; this tool does so for every file and tells you what it found.
Formats at a glance
- JPG
- JPG (also written JPEG) is the standard for photos. It makes small files by discarding detail the eye barely notices, and every device and website opens it. It has no transparency.
- PNG
- PNG keeps every pixel exactly and supports transparency. It is the right choice for screenshots, logos, drawings and text; for photos it gives large files.
- WebP
- WebP is a modern format from Google. At the same visual quality its files are usually 25–35% smaller than JPG, it supports transparency, and all current browsers open it.
- AVIF
- AVIF is the newest of the web formats and usually the smallest at the same quality. All current browsers open it, but many older programs do not.
- HEIC
- HEIC (also HEIF) is what iPhones and iPads save by default. Files are about half the size of JPG, but Windows, Android and many websites cannot open them.
- GIF
- GIF holds at most 256 colours and one fully transparent colour. It is still used for simple graphics and short animations; for photos it is large and grainy.
- TIFF
- TIFF is used by scanners, printers and publishing software. It keeps full quality, and its files are large.
- BMP
- BMP is an old Windows format that stores pixels without compression. Files are very large; it is needed only by a few older programs and devices.
- ICO
- ICO is the Windows icon format, also used for website favicons. One file holds the same picture at several sizes.
- SVG
- SVG is a vector format: shapes and text described by formulas, sharp at any size. Many apps and upload forms accept only pixel images such as PNG or JPG.
- PDF is a document format: it looks the same on every device and is what offices, schools and online forms usually ask for.