What is a JPEG file? JPG vs JPEG explained
JPEG is one of the most common image formats in the world. Your phone camera, most websites and almost every photo you have ever emailed probably use it.
JPG or JPEG: is there a difference?
No. JPG and JPEG are exactly the same format, byte for byte. The name comes from the Joint Photographic Experts Group, the team that created the standard in the early 1990s. Early versions of Windows only supported three-letter file extensions, so the short form .jpg became the common one. Both work everywhere.
How JPEG compression works
JPEG is a lossy format. It throws away detail that the human eye is least likely to notice, and in return the file gets much smaller. The main steps are:
- Split the image into 8×8 pixel blocks. Each block is handled on its own.
- Convert each block to frequencies. A transform (the discrete cosine transform) describes how quickly colors change inside the block. Smooth areas, like a clear sky, end up with very little detail to store.
- Round off the fine detail. This is the step that loses information. The more compression you ask for, the more fine detail gets rounded away.
- Pack what is left. A lossless coder (Huffman coding) stores the remaining numbers as compactly as possible.
Because the loss happens once and is controlled by a quality setting, you can pick the trade-off yourself. A quality of around 75 to 85 is usually hard to tell apart from the original, while the file is a fraction of the size.
How much smaller is a JPEG?
An uncompressed photo stores every pixel in full colour. This photo is 1080×1026 pixels, and at three bytes per pixel it would take about 3.32 MB before any compression. Here is the same photo saved in each format:
| Format | Preview | File size |
|---|---|---|
| Raw (uncompressed, BMP) | ![]() | 3.32 MB |
| PNG (lossless) | ![]() | 1.37 MB |
| JPEG (quality 80) | ![]() | 0.17 MB (172 KB) |
The JPEG is about one-nineteenth the size of the raw image and about one-eighth the size of the PNG, and most people cannot see the difference at this quality. Busy scenes such as foliage or crowds compress less than plain backgrounds.
Pros of JPEG
- Works everywhere. Every phone, browser, printer and app opens it.
- Small files. Good photos stay light enough to email, upload and load quickly.
- Adjustable quality. You choose how much size to trade for detail.
Cons of JPEG
- Quality is lost each time you save. Re-saving a JPEG adds more loss, so keep an original copy.
- No transparency. JPEG cannot store a see-through background. Use PNG or WebP for that.
- Sharp edges look rough. Text, logos and screenshots can show visible blur or blocky artifacts.
Should you use JPEG today?
For photos, yes. It is still the safe choice for compatibility. If you publish images on a website, WebP usually gives smaller files at the same quality, and PNG is better for logos and anything with transparency.
Need to change format? You can convert between JPG, PNG and WebP in the image converter. Your files are processed in your browser and never uploaded to a server.
Photo by Ardian Lumi on Unsplash


