Image formats6 min read
JPG vs JPEG: What Is the Difference?
JPG and JPEG are one format with two spellings. Here is the history behind the three letter extension, how JFIF fits in, and how to rename or convert files without breaking them.
JPG vs JPEG is not a real contest: both are the same image format, JPEG, written with two spellings of the file extension. The picture data, the quality and the compatibility are identical, and only the letters after the dot differ. The three letter .jpg exists because early Windows and DOS computers allowed only three characters in an extension.
Is JPEG the same as JPG?
Yes. JPEG is the name of the image format, short for Joint Photographic Experts Group, the committee that wrote the standard. A file extension is only a label at the end of a file name that tells your computer which app should open it.
Open a .jpg and a .jpeg file in a hex viewer and both start with the same marker bytes, and both are served on the web with the same media type, image/jpeg. A photo called beach.jpeg renamed to beach.jpg is the very same file, byte for byte.
| Extension | Format inside | Where you usually see it |
|---|---|---|
| .jpg | JPEG | Windows, cameras, most websites and upload forms |
| .jpeg | JPEG | Some Mac apps, Linux tools and browser downloads |
| .JPG | JPEG | Digital cameras and memory cards |
| .jpe | JPEG | Rare, mostly old software |
| .jfif | JPEG | Images saved from browsers on some Windows PCs |
Turn any image format into a JPG. Free, no signup.
Why JPG has three letters: a short history
The Joint Photographic Experts Group formed in 1986 as a joint effort of standards bodies. Its compression method was approved as ITU T.81 in September 1992, and ISO published it as ISO/IEC 10918, part 1 in 1994.
At that time most PCs ran DOS or Windows 3.1, which used short file names: up to eight characters, a dot and a three character extension. A file could be called HOLIDAY.JPG, but HOLIDAY.JPEG did not fit. Mac and Unix systems had no such limit, so .jpeg was common there.
Windows 95 brought long file names in 1995, yet .jpg had already become the habit. Digital cameras kept it too: they still name pictures like DSC01234.JPG, following short name rules that make memory cards readable on almost any device. Today both spellings are accepted by every mainstream app, and .jpg remains the more common one.
Where JFIF fits in
JPEG on its own describes how to compress a picture, but not every practical detail a program needs to read the file, such as the color layout. JFIF, the JPEG File Interchange Format, filled that gap with a small header at the start of the file. Version 1.02 appeared in 1992, and the ITU later adopted it as an official standard, T.871, in 2011.
Cameras and phones use a sibling header called Exif, which adds the date, camera settings and sometimes the GPS location. A typical .jpg file contains one of these headers or both, wrapped around the same JPEG data.
So JFIF is a structure inside the file, while .jfif is one more extension for the same thing. If your browser saves pictures as .jfif, our guide on what a JFIF file is explains the Windows setting behind it and how to change it.
Does the extension change quality or size?
No. Quality and file size are decided when the image is saved, by the compression level the app uses. Renaming .jpeg to .jpg, or the other way round, does not touch a single pixel.
What the extension does change is how software treats the file:
- Upload forms: some check the extension against a list. A form that lists only "jpg" may refuse a .jpeg file, even though the image is fine.
- Upper and lower case: Windows and macOS treat .JPG and .jpg as the same, but some web servers and Linux systems do not. A link to photo.jpg can break if the file is really named photo.JPG.
- App associations: your computer opens both with the same photo viewer by default, so you rarely notice a difference.
If you are comparing JPG with a truly different format, such as PNG, the differences are real. Our PNG vs JPG guide covers that comparison.
JPEG 2000 and JPEG XL are not the same as JPG
Two newer formats carry the JPEG name, and they cause real confusion. Unlike .jpg and .jpeg, they are different formats with different compression inside.
- JPEG 2000 (extension .jp2) was published as ISO/IEC 15444 in 2000. It is used in digital cinema, medical imaging and some archives, but most photo apps, phones and websites cannot open it.
- JPEG XL (extension .jxl) became an ISO standard in 2022. It makes smaller files than classic JPEG and can even repack an existing JPG without loss. Apple devices have opened it since 2023, while support in other browsers and apps is still limited.
Renaming a .jp2 or .jxl file to .jpg does not work, because the data is not classic JPEG. These files need a real conversion before an upload form or an older app will accept them.
| Format | Extension | Same as JPG? |
|---|---|---|
| JPEG | .jpg, .jpeg, .jpe, .jfif | Yes, identical |
| JPEG 2000 | .jp2 | No, different compression |
| JPEG XL | .jxl | No, different compression |
How to rename .jpeg to .jpg safely
Renaming is safe only between extensions that all mean JPEG: .jpg, .jpeg, .jpe and .jfif. Make a copy first if the file matters.
Windows 11
- Open File Explorer and choose View > Show > File name extensions so the extension is visible.
- Right click the file and choose Rename, or select it and press F2.
- Change .jpeg to .jpg and press Enter.
- Click Yes when Windows warns that the file might become unusable. For JPEG files it will not.
Mac
- In Finder, choose Finder > Settings > Advanced and turn on Show all filename extensions.
- Select the file, press Return and edit the extension.
- Press Return again, then click Use .jpg in the dialog that appears.
iPhone
- In the Files app, open the folder, tap the More button (three dots) and choose View Options, then turn on Show All Extensions. This option exists in iOS 16 and later.
- Touch and hold the file, tap Rename, edit the extension and tap Done.
Android
File manager apps differ by brand. In most, you tap the menu next to a file and choose Rename. If the app hides the extension or will not let you change it, a converter is the easier route.
When renaming is not enough
Never rename a HEIC, PNG, WebP or AVIF file to .jpg. The name changes, but the data inside stays in the old format, so some apps open it by sniffing the content while upload forms and older programs reject it or show an error.
This also explains a confusing problem: a file that ends in .jpg but still gets refused. It may be a HEIC or WebP picture that someone renamed. The EXIF Viewer detects the real format from the file contents and warns you when the extension does not match.
For a real conversion, use Convert to JPG:
- Add your images. JPG, PNG, WebP, HEIC, AVIF, GIF, BMP, TIFF and other common formats are accepted, up to 50 MB each.
- Leave the quality at 92% or change it with the slider.
- Download the files one by one or all together as a ZIP.
The result is a genuine JPEG with a .jpg extension. Transparent areas become white, photo orientation is applied and GPS location is not copied. A copy of each file you add is kept privately for 30 days, and the converted files are not stored.
Which extension to use
- For everyday saving, sharing and uploads: .jpg. It is the most widely expected spelling.
- If a form refuses .jpeg: rename it to .jpg. The image does not change.
- If a form refuses .jfif or .jpe: rename or convert it to .jpg.
- If the file is really HEIC, PNG or WebP: convert it, never rename it.
- For websites: pick lowercase .jpg and stick with it, so links never break on case.
In short, JPG and JPEG are one format with two names. Choose the shorter one and spend your effort on the quality setting instead.
FAQ
Is JPEG the same as JPG?
Yes. JPEG is the image format and .jpg and .jpeg are two spellings of its file extension. The data inside is the same, so quality, file size and compatibility do not depend on which spelling a file uses. The three letter version exists because old Windows systems allowed only three characters after the dot.
JPG vs JPEG: which is better?
Neither is better, because they are the same format. Use .jpg when you have a choice, since it is the most common spelling and the one upload forms list most often. Image quality depends on the compression level chosen when the photo was saved, not on the extension.
Can I change .jpeg to .jpg by renaming?
Yes. Show file extensions on your computer, rename the file and replace .jpeg with .jpg. The image stays exactly the same. Only do this between JPEG extensions such as .jpg, .jpeg, .jpe and .jfif; files in other formats like HEIC, PNG or WebP need a real conversion.
What does JPEG stand for?
JPEG stands for Joint Photographic Experts Group, the committee formed in 1986 that created the standard. Its method for compressing photos was approved in 1992 and published by ISO in 1994. The group still works on image standards today, and the name stuck to the format.
Why does my camera save photos as .JPG in capital letters?
Cameras follow file naming rules designed for memory cards, which use short upper case names such as DSC01234.JPG so the card works in almost any device. On Windows and Mac the capital letters make no difference. On some web servers they do, so use lowercase names when you upload files to a website.
Try Convert to JPG now
Turn any image format into a JPG. Works in your browser, free and without a watermark.
Open Convert to JPG