THE VECTOR FIELD GUIDE

JPG vs JPEG: is there any difference?

JPG and JPEG are the same image format. Learn why two extensions exist, when it matters, and how to switch between them safely.

By Shahab Uddin · Updated

The short answer

There is no difference between JPG and JPEG. Both extensions mean the same image format, defined by the Joint Photographic Experts Group. “.jpg” exists because early Windows file systems only allowed three-letter extensions. A .jpg and a .jpeg file with the same content are identical, byte for byte.

Why there are two extensions

The JPEG standard (ITU-T T.81, ISO/IEC 10918-1) was published in 1992. MS-DOS and early Windows used the 8.3 filename rule: eight characters, a dot, and three characters. JPEG has four letters, so Windows software saved files as .jpg. Mac and Unix systems had no such limit and used .jpeg.

Modern systems accept both, but the habit stuck. Cameras and Windows tools mostly write .jpg; some Mac and Linux tools still write .jpeg.

JPG, JPEG, JFIF and JPE compared

ExtensionWhat it isSame image data?
.jpgJPEG image, three-letter extensionYes
.jpegJPEG image, full extensionYes
.jfifJPEG image following the JFIF container conventionYes
.jpeRare JPEG extension from early WindowsYes
.pjpegProgressive JPEG MIME label used by old Internet ExplorerYes

When the extension does matter

  • A strict upload form only lists one extension. Rename the file or use the JPEG to JPG converter.
  • A file is not really a JPEG at all, for example an iPhone HEIC renamed to .jpg. Re-encode it as a genuine JPEG.
  • Scripts or web servers match extensions case-sensitively, so .JPG and .jpg may be treated differently.

How to change JPEG to JPG

  1. Windows: turn on “File name extensions” in File Explorer’s View menu, then rename photo.jpeg to photo.jpg.
  2. Mac: select the file, press Return, change the extension, and confirm “Use .jpg”.
  3. Many files at once: use the JPEG to JPG converter on this site, which renames without touching the pixels.

JPEG quality, not the extension, decides how it looks

JPEG is lossy: it discards fine detail to make files small. What matters is the quality setting used when saving. Saving a JPEG repeatedly at low quality adds visible blocks and ringing. Renaming the extension never changes quality.

Sources

Written by Shahab Uddin. Published ; updated . Corrections are welcome through the contact page.

A few useful answers

Before you hit download

Is JPG better quality than JPEG?

No. They are the same format. Quality depends on the compression setting, not the extension.

Should I use .jpg or .jpeg?

Use .jpg. It is the most common and is accepted everywhere.

Is JPEG the same as PNG?

No. PNG is a different, lossless format that supports transparency. See the PNG vs JPEG guide.

Next, make it useful.