JPG vs PNG vs WEBP vs PDF: which format should you use?
Choosing the wrong file format makes files bigger, blurrier or impossible to upload. Here is when to use each of the common ones.
JPG (JPEG)
Best for photographs. It uses lossy compression: you can trade quality for a much smaller file. Almost every device, website and portal accepts it. Not ideal for sharp text or logos, where edges can look fuzzy.
PNG
Best for screenshots, logos and graphics with flat colours or transparency. It is lossless, so edges stay crisp, but photographs saved as PNG are very large.
WEBP
A modern format that is usually smaller than JPG or PNG at similar quality, and supports transparency. Most browsers handle it, but some older programs and many upload forms do not, so convert it to JPG when a portal complains.
Best for documents: it keeps layout, fonts and multiple pages in one file, and looks the same on every device. Use it when you need to send several pages or a form. It is not a good way to send a single photo.
Switching between formats
- Photo to another image format: Image Format Converter.
- Photos to a PDF: Image to PDF.
- A PDF page to an image: PDF to Image.
- Need a particular size too: Compress to Exact Size (KB).
A simple rule
Photo for a form: JPG. Logo or screenshot: PNG. Document with several pages: PDF. Anything else going on a web page: WEBP is fine if you do not need old software to open it.
A few examples
- A passport-style photo for a form: JPG, because it is a photograph and the portal almost certainly accepts JPG.
- A screenshot with text for a bug report: PNG, because the text stays sharp.
- A company logo with a see-through background: PNG or WEBP.
- A 6-page application you will email: PDF.
- A blog image where small size matters: WEBP or a well-compressed JPG.
Why file sizes differ
JPG throws away detail the eye does not notice, which is why photos shrink well. PNG keeps every pixel exactly, which is perfect for sharp edges but heavy for photos. PDF is a container, so its size is whatever it holds. Converting a photo from JPG to PNG makes it bigger without making it better.
Dimensions and file size are different things
A "small" image can mean few pixels or few kilobytes. A form that says "200 × 230 pixels, below 50 KB" is asking for both, and you need to meet each one. A 200 × 230 JPG is usually only a few KB to a few tens of KB, so dimensions seldom cause trouble on their own.
Print versus screen
For printing, resolution matters more than for screens. A photo that looks fine on a phone may look soft on paper. If something will be printed, keep the largest version and do not compress it more than needed.