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
| Extension | What it is | Same image data? |
|---|---|---|
| .jpg | JPEG image, three-letter extension | Yes |
| .jpeg | JPEG image, full extension | Yes |
| .jfif | JPEG image following the JFIF container convention | Yes |
| .jpe | Rare JPEG extension from early Windows | Yes |
| .pjpeg | Progressive JPEG MIME label used by old Internet Explorer | Yes |
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
- Windows: turn on “File name extensions” in File Explorer’s View menu, then rename photo.jpeg to photo.jpg.
- Mac: select the file, press Return, change the extension, and confirm “Use .jpg”.
- 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.