JPG File Format Explained

Joint Photographic Experts Group · .jpg, .jpeg

Extension.jpg, .jpeg
MIME typeimage/jpeg
TypeImages
Developed byJoint Photographic Experts Group
First released1992
Royalty-freeYes
CompressionLossy

What is a JPG file?

JPG (or JPEG, from the committee that designed it in 1992) is the most widely used photo format. It compresses images by discarding detail the eye is least likely to notice, which lets a camera photo shrink to a tenth of its raw size with little visible change. The quality setting controls how much is thrown away.

The trade-off is that the discarded data is gone for good, and every re-save discards a little more. JPG has no transparency and handles sharp edges, text and flat colours poorly, producing the familiar blocky halos around letters. Camera and phone JPGs also carry EXIF metadata: date, camera model and often GPS coordinates.

When JPG is the right choice

Strengths

  • Small files for photographs and other continuous-tone images
  • Opened by every device, browser and program made in the last thirty years
  • Adjustable quality lets you trade size against fidelity

Limitations

  • Lossy: detail is lost at every save and cannot be recovered
  • No transparency and no animation
  • Text, logos and screenshots come out blurry with artefacts

How to open a JPG file

Every operating system, browser and photo app opens JPG. Before publishing a photo, check what it reveals with the EXIF viewer and strip location data with Remove EXIF.

How to convert a JPG file

JPG to PNG gives a lossless copy for editing or for adding transparency, JPG to WebP shrinks photos for the web, and JPG to PDF turns scans or photos into a document. For smaller JPGs without changing format, Compress Image re-encodes at a lower quality.

Frequently Asked Questions

Is there a difference between JPG and JPEG?

No. They are the same format; .jpg exists because early Windows systems allowed only three-letter extensions. Any program that opens one opens the other.

Why does my JPG get worse each time I save it?

Each save re-compresses the image and discards more detail. Edit in a lossless format such as PNG or TIFF and export a JPG only once at the end.

Should I use JPG or PNG?

JPG for photographs, PNG for screenshots, logos, text and anything that needs transparency. WebP covers both cases with smaller files when the target is a website.

Does a JPG store where the photo was taken?

Phone photos usually do, in the EXIF GPS tags. Social networks strip this, but files sent directly or attached to e-mail keep it unless you remove the metadata.