There's no difference between the file extensions, and they are used interchangeably. I guess the 3-letter version stems from the DOS era...
However, there are different "flavors" of JPEG files. Most notably the JFIF standard and the EXIF standard. Most often these just use .jpg
or .jpeg
as file extensions, JFIF sometimes uses .jif
or .jfif
.