Use JPG for photographs, PNG for screenshots, logos and anything with a transparent background, and WebP for pictures on a website you run yourself. If you are sending a picture to someone else or uploading it to a form and do not know what they accept, JPG is the safe choice for photos and PNG for graphics.
The three formats differ in three ways that matter in practice: whether saving loses detail, whether transparency is possible, and how many programs can open the file.
JPG: small files for photos
JPG shrinks a picture by discarding fine detail that the eye barely notices in a photograph. That is why a phone photo of several megabytes can look fine. The cost shows in three places:
- Sharp edges: text, thin lines and flat colour areas pick up a faint haze, more so at low quality settings.
- Repeated saving: each time a JPG is opened, edited and saved again, a little more detail goes. One or two rounds are invisible, many rounds are not.
- No transparency: a JPG is always a full rectangle. A see-through background has to be filled with a colour.
Its strength is compatibility. Practically every device, program and upload form accepts JPG. The endings .jpg and .jpeg mean the same format.
PNG: exact pixels and transparency
PNG stores every pixel exactly as it is. Nothing is lost, no matter how often you save. It also supports transparency, including soft edges and shadows. That makes it the right format for screenshots, diagrams, logos, icons and cut-out product pictures.
For photographs it is wasteful. A photo saved as PNG is commonly several times larger than the same photo as a good JPG, with no difference you could see. PNG also has no quality setting, so the only way to make one smaller is to reduce its pixel dimensions. Like JPG, it opens almost everywhere.
WebP: smaller, with one catch
WebP is the newer format. It can work like JPG, discarding some detail, or like PNG, keeping every pixel, and it supports transparency in both modes. For the same visible quality its files are usually smaller than JPG. All current browsers display it, which is why so many websites use it.
The catch is everything that is not a browser. Older photo editors, some office programs, some email programs and many upload forms do not accept WebP. If you have one you cannot use, this article explains what to do with a WebP file.
File size compared
Exact numbers depend on the picture, so treat these as tendencies and not as promises:
- A photo: WebP is smallest, JPG a little larger, PNG far larger.
- A screenshot or a logo with few colours: PNG is often small already, and it stays crisp. JPG can come out larger and look worse.
- A graphic with transparency: WebP is usually much smaller than PNG. JPG is not an option.
Format is only one of the things that decide file size. Pixel dimensions and the quality setting often matter more, as described in how to reduce image size without visible loss.
Changing from one format to another
Convert image turns ordinary image files into JPG, PNG or WebP in your browser, without uploading them. A few things are worth knowing before you convert:
- Converting to JPG fills transparent areas with white. Use PNG to WebP if the transparency has to stay and the file has to shrink.
- Converting a JPG to PNG does not bring back lost detail and does not make the background transparent. It only stops further loss. The JPG to PNG guide covers this.
- Animated pictures come out as a single still frame, and pictures above about 16 megapixels are scaled down to that size.
- If your browser cannot write WebP, you get a JPG instead. Check the file ending.
For JPG and WebP there is a Quality slider that starts at 92 %. The Convert image guide has the details.
Quick decision list
- Photo for email, a form or a print service: JPG.
- Screenshot with text: PNG.
- Logo or icon with a transparent background: PNG, or WebP on your own website.
- Photos on your own website: WebP, and keep the JPG originals.
- A picture you will edit and save many times: keep a PNG as the working copy and export a JPG at the end.
- An upload form with a size limit: JPG, brought under the limit with Compress image.
- You do not know what the other side can open: JPG for photos, PNG for graphics.