Skip to content
ImageDoctor
Image formatUpdated

JPG (JPEG): the format for photos you share

JPEG is a lossy format for photographs. It makes photos small by discarding detail you are unlikely to notice, and almost every device, app and upload form in the world can open it. It has no transparency and no animation, and it handles text and sharp edges badly.

JPEG at a glance

File extensions
.jpg, .jpeg, .jpe, .jfif
MIME type
image/jpeg
Compression
Lossy. The standard also defines a lossless mode, but almost nothing uses it.
Transparency
None. Transparent areas are filled with a solid colour when saving to JPEG.
Animation
None.
Colour
8 bits per channel. RGB, greyscale or CMYK, with an optional embedded colour profile.
Browser support
Every browser, operating system, camera and image app.
In ImageDoctor
Opens, compresses, resizes, crops and converts JPEGs. Removes metadata without re-encoding, and can keep EXIF when saving JPEG to JPEG.

JPG or JPEG?

They are the same format. JPEG is named after the Joint Photographic Experts Group, which published the standard in 1992. The three-letter .jpg extension comes from old Windows and DOS file names, which allowed only three characters after the dot. .jfif files — which Windows sometimes produces when you save an image from a browser — are also ordinary JPEGs in a slightly different wrapper. Any tool that opens a .jpg opens them, and renaming one to .jpg usually works too.

How JPEG makes photos small

JPEG compression is a series of steps, each of which throws away something the eye is bad at noticing:

  1. Brightness and colour are separated. People see detail mostly in brightness, so the colour information is usually stored at half the resolution (chroma subsampling). On a photo you cannot tell. On thin red text on white, you can.
  2. The picture is cut into 8×8-pixel blocks, and each block is described as a mix of smooth and fine patterns.
  3. Fine patterns are rounded off. This is where the quality setting acts. Lower quality rounds more aggressively, which removes texture first and then starts to show the block grid.

That is why JPEG routinely stores a photo in around a tenth of the space its raw pixels would take and still looks the same at normal viewing size, while a screenshot of text gets fuzzy halos around every letter. Photos are made of smooth transitions JPEG can approximate. Text is made of hard edges it cannot.

Quality settings are not a percentage

The 0–100 quality number is not "percent of the original kept", and it is not consistent between programs — quality 80 in one app is not the same file as quality 80 in another. As a practical guide in ImageDoctor:

QualityUse it for
90–95Masters you may edit again, and prints
80–85Photos on the web, in email and in documents
70–75Thumbnails and previews
Below 60Only when you must hit a tight size limit — check the result

Rather than guessing, the Image Compressor can aim for a file size — 200 KB, say — and find the highest quality that fits.

Every save costs a little

Opening and viewing a JPEG changes nothing. Saving it again runs the lossy steps again, so a JPEG that is edited and re-saved many times gets gradually worse — like photocopying a photocopy. Keep your original, edit from it, and export a JPEG once at the end.

Hidden data in JPEG files

Camera and phone JPEGs usually carry EXIF metadata: the device model, exposure settings, the date and often the GPS position where the photo was taken. It travels with the file when you share it. The Metadata Viewer shows what a file contains, and the Metadata Remover strips it from a JPEG without re-encoding the picture, so there is no quality loss.

When to use JPEG

  • Photos you hand to someone else — email attachments, job and government upload forms, print shops. JPEG is the one format they will all accept.
  • Photos where transparency is irrelevant and small size matters more than perfect fidelity.
  • Anything going into older software or hardware that predates WebP and AVIF.

When not to

  • Logos, icons and anything with a transparent background. Use PNG, WebP or SVG.
  • Screenshots, text and line art. The edges ring and blur. PNG or WebP keeps them crisp.
  • Images on a website you control. WebP is typically 25–34% smaller at the same visual quality, and AVIF smaller still.
  • Files you are still editing. Use a lossless format for the working copy and export JPEG last.

Convert JPEG files

Each converter runs in your browser with the output format already chosen. Add one file or a whole folder.

Common questions

Yes. They are two extensions for one format; .jpg exists because older systems only allowed three-letter extensions.

No. JPEG has no transparency, so transparent areas are filled with a solid colour when an image is saved as JPEG. Use PNG or WebP if you need transparency.

No. The PNG is an exact copy of the JPEG's pixels, including any compression artefacts. It stops further loss on later saves, but it cannot restore detail that is already gone.

A JPEG image in the JFIF wrapper, which Windows sometimes uses when saving images from a browser. ImageDoctor opens it like any JPEG, and renaming it to .jpg usually works as well.

Tools for JPEG files

All image formats