Skip to content
Private: files never leave your device

JPEG vs JPG: What Is the Difference?

People search for JPEG vs JPG because a phone, camera or website shows one ending and another app shows the other. The two names describe exactly the same kind of file. This guide explains where each ending came from, the other endings that are also JPEG, and the formats with JPEG in their name that really are different.

JPEG vs JPG: the .jpg and .jpeg endings are the same JPEG image format with the MIME type image/jpeg, while JPEG 2000 and JPEG XL are separate formats

There is no difference between JPEG and JPG: both endings label the same image format, made by the same compression method, with the same quality and the same MIME type, image/jpeg. The shorter .jpg exists because old MS-DOS file names allowed only three letters after the dot; renaming a photo from .jpeg to .jpg, or back, changes nothing inside the file. The names that do mean something different are JPEG 2000 and JPEG XL, which are separate formats.

What JPEG stands for

JPEG is short for the Joint Photographic Experts Group, the committee that wrote the standard. On its own site the committee calls the original standard JPEG 1, published as ISO/IEC 10918 (also ITU-T Recommendation T.81). It was created in 1992, with the latest version from 1994. Part 5 of that standard specifies the JPEG File Interchange Format, or JFIF, which is the file layout most JPG photos use today.

MDN, the Mozilla web documentation, makes the same point in a useful way: JPEG is really a data format for compressed photos rather than a file type, and the JFIF specification describes the files we call JPEG images. In practice every .jpg or .jpeg file you meet holds that same compressed data.

Why there are two endings

Microsoft explains that the older MS-DOS FAT file system allowed at most 8 characters for the name and 3 for the extension, known as an 8.3 file name. A four letter ending such as .jpeg did not fit, so software on PCs saved photos as .jpg, while systems without that rule often used the full .jpeg. Modern Windows, macOS, Android and iOS all accept long extensions, so both survive simply out of habit and software defaults.

Microsoft Support now lists jpg, jpeg together on a single row in its table of common Windows file name extensions, described as a Joint Photographic Experts Group photo file. MDN lists the file extensions for the format as .jpg, .jpeg, .jpe, .jif and .jfif, all with the MIME type image/jpeg.

JPEG vs JPG at a glance

Question.jpg.jpeg
Image format insideJPEG (usually JFIF)JPEG (usually JFIF)
MIME typeimage/jpegimage/jpeg
CompressionLossy, based on the discrete cosine transformThe same
Quality and file sizeSet by the quality used when saving, not by the endingThe same
TransparencyNot supportedNot supported
Largest size65,535 x 65,535 pixels (MDN)The same
Opens in all major browsersYesYes

Because the content is identical, a .jpeg file is not higher quality than a .jpg. Quality depends only on the compression setting chosen when the photo was saved and on how many times it has been saved again.

Other endings that are also JPEG

EndingWhat it isWhat to do
.jpgThe most common JPEG endingNothing; it works everywhere
.jpegThe full four letter endingNothing, unless a form only accepts .jpg
.jpeAn older short formRename to .jpg if an app does not recognise it
.jfifNamed after the JPEG File Interchange FormatRename to .jpg, or convert if renaming is not allowed
.jifA rare variantRename to .jpg

A .jfif download often confuses people because some upload forms do not list it, even though it is the same JPEG data. Our image tools read .jpg, .jpeg and .jfif files as JPEG, and when they save a JPG they use the .jpg ending with the image/jpeg type, which every site and app accepts.

Can I rename .jpeg to .jpg?

Yes. Microsoft states that changing a file name extension does not convert the file to another format or change anything else about it except the name. Between .jpeg and .jpg that is exactly what you want, because the format is already the same. Renaming is safe only within the JPEG family: renaming a PNG, WebP or HEIC photo to .jpg leaves it as a PNG, WebP or HEIC file with a misleading name, and many sites will reject it. For those, convert the file instead with PNG to JPG, WebP to JPG or HEIC to JPG.

On Windows, endings are often hidden. Microsoft says to open File Explorer and choose View, Show, File name extensions to see them. On a Mac, Apple says to open Finder, Settings, Advanced and select Show all filename extensions, or use File, Get Info for one file. Apple also warns that changing an extension can stop a file opening in the app that made it, so to change the real format, Apple recommends converting in an app such as Preview.

  1. Show file name extensions using the steps above.
  2. Right-click the photo and choose Rename.
  3. Replace .jpeg with .jpg (or the other way round) and press Enter.
  4. Confirm the warning. The picture opens exactly as before.

When the difference actually matters

  • A form that checks the ending. Some upload pages accept only .jpg, or only .jpeg, because the developer listed one ending. Renaming fixes it in seconds.
  • Scripts and file searches. A search for *.jpg will skip photos ending in .jpeg. Search for both, or rename the files to one ending first.
  • Size limits. If a site rejects a photo for being too big, the ending is not the problem. Shrink it with Compress JPG or reduce its pixel size with Resize Image.
  • Transparency. Neither ending can store a transparent background, because the JPEG format has no alpha channel. Use PNG or WebP for logos and cut-outs; see JPG to PNG.

JPG vs JPEG 2000 and JPEG XL

Google suggests searches such as jpg vs jpeg 2000 and jpeg vs jpg xl, and these are where real differences appear. Both formats come from the same committee but are separate standards with their own file types:

FormatStandardFile typeHow it differs from JPG
JPEG (JPG)ISO/IEC 10918.jpg, .jpegAlmost always lossy in everyday use, no transparency, opens everywhere
JPEG 2000ISO/IEC 15444JP2 file formatLossy and lossless coding, very high bit depths, resolution scalability; used mainly in specialist imaging
JPEG XLISO/IEC 18181.jxlLossy and lossless, transparency, HDR and animation; can losslessly repack an existing JPG; browser support is not yet universal

The committee describes JPEG 2000 as supporting lossy and lossless coding, terapixel images and progressive decoding, with its Part 1 defining the JP2 file format. MDN lists JPEG XL under the MIME type image/jxl and advises providing a fallback such as AVIF, WebP or JPEG with the picture element. Renaming either of these to .jpg does not work; they need to be converted.

If you are deciding between JPG and other everyday formats, our comparison of JPG, PNG and WebP covers quality and file size side by side.

Troubleshooting

ProblemLikely causeFix
A website says my .jpeg is not allowedThe form lists only .jpgRename the ending to .jpg
My photo downloaded as .jfifThe server named it after the JFIF layoutRename to .jpg; it is the same JPEG data
I renamed to .jpg and the site still rejects itThe file was really PNG, WebP or HEICConvert it with the matching converter instead of renaming
I cannot see .jpg or .jpeg at allExtensions are hiddenTurn on file name extensions in File Explorer or Finder
The JPG has a white box instead of a clear backgroundJPEG cannot store transparencySave the image as PNG or WebP

Sources and dates

PageReadUsed for
MDN: image file type and format guide23 November 2026Endings .jpg, .jpeg, .jpe, .jif, .jfif; image/jpeg; no alpha; 65,535 pixel limit; JPEG XL details
JPEG committee: overview of JPEG 123 November 2026ISO/IEC 10918, 1992 and 1994 dates, JFIF in Part 5
JPEG committee: overview of JPEG 200023 November 2026JPEG 2000 features and the JP2 file format
Microsoft Learn: naming files23 November 2026MS-DOS FAT 8.3 names, 3 character extensions
Microsoft Support: common file name extensions23 November 2026jpg and jpeg on one row; renaming does not convert; showing extensions
Apple: show or hide filename extensions23 November 2026Finder steps and the warning about changing extensions

Frequently asked questions

Is JPG the same as JPEG?

Yes. Both endings label the same image format with the MIME type image/jpeg, so the picture, quality and file size are identical.

Which is better, JPG or JPEG?

Neither. Quality depends on the compression setting used when saving, not on the ending. Use .jpg when in doubt, because every app and site accepts it.

Why do some files end in .jpeg and others in .jpg?

Old MS-DOS file names allowed only three letters after the dot, so PCs used .jpg. Other systems kept the full .jpeg, and both stayed in use.

Is JPG the same as JPEG 2000?

No. JPEG 2000 is a separate standard, ISO/IEC 15444, with its own JP2 file format. It must be converted, not renamed, to become a JPG.

Is a .jfif file a JPG?

Yes. JFIF is the file layout used by most JPEG images, so a .jfif photo can usually be renamed to .jpg and used anywhere.