Understanding the difference between JPG and JPEG file formats and when to use each
JPG and JPEG are exactly the same image format. The only difference is the file extension. JPEG was shortened to JPG due to early Windows systems that only supported 3-character file extensions.
| Aspect | JPG | JPEG |
|---|---|---|
| Image Quality | Identical | Identical |
| File Size | Same | Same |
| Compression | Lossy compression | Lossy compression |
| Browser Support | Universal | Universal |
| File Extension | .jpg | .jpeg |
The JPEG format was created by the Joint Photographic Experts Group in 1992. The original file extension was ".jpeg" with five characters. However, early versions of Windows (MS-DOS and Windows 3.1) only supported three-character file extensions, so ".jpeg" was shortened to ".jpg".
Both JPG and JPEG files:
The choice between .jpg and .jpeg is purely a matter of preference:
JPEG format is best for:
Avoid JPEG for: