Theme

File names

IMG_2041.heic

IMG_2041.jpg

Language

Your files and these choices stay on this device.

Conversion settings

Your starting point for new files. You can still change anything before converting.

Convert to

Quality
AutoSmaller fileBest quality
Bitrate
Auto64 kbps320 kbps
Video bitrate
Auto1 Mbps12 Mbps
Speed
Resolution
Color
Normalize volume
Remove metadata
Leave out images
Download several files as

Image format

What is a .jpg file?

JPG (or JPEG) is the standard format for photos. It uses lossy compression, discarding detail the eye barely notices, so a photo takes a fraction of the space it would as PNG.

It has no transparency and loses a little quality every time it’s saved again. In exchange, it opens on every device and app made in the last 30 years.

fileclay opens and writes JPG

JPG vs PNG vs WebP

JPGPNGWebP
CompressionLossyLosslessLossy or lossless
TransparencyNoYesYes
AnimationNoAPNGYes
Color depth8 bitsUp to 16 bits8 bits
SupportEverywhereEverywhereAll modern browsers
Best forPhotosGraphics, screenshotsImages on the web
File size, measured

Photo, 1600 × 1067

PNG2.6 MB
JPG180 KB
WebP104 KB

Screenshot, 1280 × 800

PNG129 KB
JPG71 KB
WebP36 KB

Encoded in Chromium, with JPG and WebP at quality 80. PNG keeps every pixel; the other two discard detail.

When to use JPG

Good for

  • Photos you want to share or upload
  • Images on sites that only accept JPG
  • Printing photos at home or at a shop

Not a good fit

  • Logos and text: edges pick up visible artifacts
  • Anything that needs a transparent background
  • Images you’ll edit and save many times

How to open .jpg files

PlatformAppNotes
WindowsPhotosBuilt in
macOSPreview, PhotosBuilt in
iPhone, iPadPhotos, FilesBuilt in
AndroidGoogle Photos, GalleryBuilt in
BrowsersChrome, Safari, Firefox, EdgeDrag the file into a tab
EditorsPhotoshop, GIMP, Affinity Photo, PaintOpens and saves

Convert JPG files

How to identify a .jpg file

Every JPG starts with FF D8 FF. The next byte says what kind of segment comes first, so it varies between cameras and apps.

FF
D8
FF

It’s read here, in your browser. Only the first bytes.

What comes after

SOIStart of the image
APP1Exif data: camera, date and location
DQTQuantization tables, which set the quality
SOSThe compressed image
EOIEnd of the image

Questions about JPG

What is the difference between JPG and JPEG?

None. They are the same format. The three-letter .jpg comes from old Windows versions that limited extensions to three characters.

Does JPG lose quality every time it’s saved?

Yes, when the image is encoded again. Opening, copying or renaming the file doesn’t change it.

Why is there no transparency in JPG?

The format has no alpha channel. A transparent PNG converted to JPG gets a solid background.

What quality should a JPG have?

Between 75 and 85 is hard to tell from the original for most photos. Above 95 the file grows a lot for very little.

Is JPG or PNG better for photos?

JPG. In our test the same photo took 180 KB as JPG at quality 80 and 2.6 MB as PNG.

Related formats

Sources