What Is a JPG File?

JPG is the most common image format for photos, balancing small files with good quality. Learn how it works, why it is so widely supported, and when to choose it.

By AlexUpdated August 25, 2026

JPG is a lossy photo format that trades a little detail for small files, which is why it became the default for cameras and the web. It is universal but not perfect for every image.

How it works

The short answer

JPG, short for JPEG, is a widely supported photo format that shrinks files by discarding detail the eye rarely notices. It is lossy, so it is best for photographs you want to share rather than edit repeatedly. Nearly every camera, phone and website can create and open a JPG.

How JPG works

JPG compresses an image by simplifying color and smoothing areas of fine detail, guided by a quality setting. Higher quality keeps more detail in a larger file, while lower quality shrinks it further at the cost of visible artifacts. That single slider controls the whole tradeoff.

Why JPG is everywhere

JPG balances reasonable quality with small file size and is supported by every camera, browser, app and printer. That universal support makes it the safest format for emailing photos, uploading to a form, or posting anywhere. If a system accepts any image, it accepts JPG.

When to choose JPG

Choose JPG for photographs you will share, email, print or post online, where small size and compatibility matter. Avoid it for logos, screenshots and text heavy graphics, where the compression leaves visible smudges and JPG cannot store transparency.

JPG vs PNG

PNG keeps every pixel losslessly and supports transparency, making it the right format for graphics, logos and anything you may edit again. JPG is far smaller for photographs. The usual workflow is a PNG master plus a JPG for sharing.

The one thing to remember

Every JPG save discards a little detail, so repeated editing in JPG gradually degrades the photo. Keep a lossless original such as PNG if you might edit again, and export JPG only when you are ready to share.

Format comparison

FormatCompressionTransparencyBrowser supportBest for
JPG.jpgLossy (discards some detail)NoAll browsers and devicesPhotographs and images with smooth color gradients
PNG.pngLossless (keeps every pixel)YesAll browsers and devicesScreenshots, logos, illustrations with sharp edges and transparency

Frequently asked questions

Is JPG lossy?

Yes. JPG compression discards fine detail to make files smaller, so repeated saving gradually reduces quality. Keep a lossless original for editing.

Does JPG support transparency?

No. JPG has no alpha channel, so transparent areas are filled with a background color when you convert. Use PNG for transparency.

What is a JPG file used for?

Photos for sharing, email, printing and the web, where small size and universal compatibility matter most.

Why is JPG the most common format?

It balances good quality with small files and is supported by every camera, browser, app and printer, making it the default for photo sharing.