JPEG is a way to shrink photo files so they take up less space

JPEG (Joint Photographic Experts Group) is a file format that compresses photographs and realistic images into smaller files. When you take a photo on your phone or camera and save it as a .jpg or .jpeg file, the format is throwing away some of the image data that human eyes usually cannot see. This trade-off — smaller file size in exchange for slightly lower quality — is why JPEG works well for photos but not for graphics, logos, or images where you need every pixel to stay exactly as it is.

The format has been around since 1992 and is supported by every device, website, and program that handles images. If you email a photo to someone, post it on social media, or view it in a web browser, it is almost certainly a JPEG. That universal compatibility is one reason JPEG remains the default choice for photographs, even though newer formats exist.

Key Takeaways

  • JPEG compresses photo files by removing detail your eye cannot easily see, making files much smaller than the original.
  • JPEG works best for photographs and realistic images, but produces blurry results on text, logos, and graphics with sharp edges.
  • Every device and website supports JPEG, so it is the safest choice when you need to share an image with anyone.
  • You can control how much JPEG compresses a file by adjusting the quality setting when you save, trading file size against visible quality loss.

How JPEG compression actually works

JPEG uses a technique called lossy compression, which means it permanently removes some information from the image file. The format identifies parts of the photo that contain gradual color changes — like a blue sky or skin tones — and simplifies them. It keeps the sharp edges and details that matter more to human vision, like the outline of a face or the texture of fabric.

When you save a photo as JPEG, your editing program or camera asks you to choose a quality level, usually on a scale from 1 to 100. A quality setting of 90 or higher produces a file that looks nearly identical to the original, but the file is still smaller. A setting of 60 or 70 produces visible softness and color banding, especially in areas of smooth color. A setting below 50 creates obvious artifacts — blocky squares and color shifts — that make the image look degraded.

The lower the quality setting, the smaller the file. A high-resolution photo might be 8 megabytes as a raw file, but the same photo saved as JPEG at quality 85 might be only 1 or 2 megabytes. At quality 60, it could be under 500 kilobytes. This is why JPEG became the standard for web images and email attachments — the file size difference matters when you are uploading to a website or sending files over the internet.

When JPEG is the right choice

Use JPEG for any photograph, portrait, landscape, or image with many colors and gradual transitions. Photos from your phone camera, pictures from a DSLR, screenshots of realistic scenes, and artwork with soft shading all work well as JPEG. The format handles the complexity of natural images efficiently.

JPEG is also the right choice when you need to share an image with someone and you are not sure what program they use. Because JPEG is supported everywhere — on phones, computers, tablets, websites, and email — you know the person on the other end will be able to open it without installing anything or converting the file.

If file size matters — uploading to social media, emailing multiple photos, or storing thousands of images — JPEG lets you keep quality high while keeping files manageable. Most social media platforms (Facebook, Instagram, Twitter) accept JPEG and often compress it further on their own servers anyway, so starting with a well-compressed JPEG makes sense.

When JPEG is a poor choice

Do not use JPEG for images with text, logos, or graphics with sharp edges and solid colors. JPEG compression blurs the edges of text and makes logos look soft and fuzzy. If you have a logo, a diagram, a screenshot with text, or any graphic where crisp edges matter, use PNG instead. PNG uses lossless compression, meaning it keeps every pixel exactly as it is.

JPEG is also not ideal if you plan to edit the image many times. Every time you open a JPEG, edit it, and save it again, you lose a little more quality. If you are working on a photo in Photoshop or Lightroom and plan to make multiple rounds of changes, save your working file as PSD (Photoshop's native format) or TIFF (a lossless format), and only convert to JPEG when you are finished and ready to share.

Avoid JPEG if you need transparency — a background that is see-through rather than solid. JPEG does not support transparency at all. PNG does, and so does GIF and WebP. If you need a logo or graphic with a transparent background, you must use one of those formats.

JPEG versus PNG versus WebP

FormatBest forFile sizeTransparencyBrowser support
JPEGPhotographs, realistic imagesVery smallNoAll browsers, all devices
PNGGraphics, logos, text, images needing transparencyMedium to largeYesAll browsers, all devices
WebPPhotographs and graphics, smaller files than JPEG or PNGVery smallYesMost modern browsers (not older versions of Safari or Internet Explorer)

How to save a file as JPEG

In most image editing programs, go to File > Export As or File > Save As, then choose JPEG from the format dropdown. The program will ask you to set a quality level. For photos you are sharing online or emailing, a quality of 80 to 85 is a good balance — the file is small but the image still looks sharp. For photos you might print or want to keep as a high-quality copy, use 90 or higher.

On your phone, you usually do not have a choice — photos save as JPEG by default. Some phones offer a setting to save as HEIF (a newer, more efficient format), but JPEG remains the standard. If you take a screenshot on most phones, it saves as PNG instead, which is correct because screenshots contain text and sharp edges.

If you have a JPEG file and want to convert it to another format, you can open it in any image editor (Photoshop, GIMP, Paint, Preview on Mac) and export it as PNG, WebP, or another format. The image quality will not improve — you cannot add back the detail that JPEG compression removed — but you can change the format to suit a different purpose.

Why JPEG quality loss is usually invisible

JPEG compression works because human eyes are better at noticing changes in brightness than changes in color. The format takes advantage of this by keeping brightness information sharp and simplifying color information. For most photographs, especially at quality settings above 75, the compression is invisible to the human eye. You would need to zoom in or compare the original and compressed versions side by side to see the difference.

This is why JPEG has remained the standard for 30 years, even as storage has become cheaper and internet speeds have increased. The format is efficient enough that the file size savings still matter, and the quality loss is small enough that most people never notice. For casual photos, social media, and everyday sharing, JPEG is still the practical choice.

Frequently Asked Questions

Can I make a JPEG file smaller without losing quality?

Not without changing the format. JPEG compression is already optimized for photos. If you lower the quality setting further, the image will look worse. If you need a smaller file and want to keep quality high, try WebP instead — it produces smaller files than JPEG for the same visual quality, though not all devices support it yet.

What is the difference between .jpg and .jpeg?

There is no difference. Both are the same format. The .jpg extension is shorter (a holdover from older computer systems that limited filenames to three letters), while .jpeg is the full name. Most programs accept both and will open them identically.

If I convert a PNG to JPEG, will it look worse?

Only if the PNG contains text, logos, or sharp edges. JPEG will blur those. If the PNG is a photograph, converting to JPEG will make the file smaller with little visible quality loss. But you cannot convert back to PNG and recover the lost detail — the damage is permanent.

Should I use JPEG for images I am going to edit later?

No. Save your working file in PSD, TIFF, or another lossless format while you are editing. Each time you save a JPEG, you lose quality. Once you are finished editing and ready to share, export a final version as JPEG.

Why do my JPEG files look blurry when I zoom in?

That is JPEG compression at work. The format simplifies color information in areas of gradual change, which creates softness when you zoom in closely. This is normal and expected. If you need sharp detail at any zoom level, use PNG or another lossless format instead.