JFIF files explained
You saved a picture from a web page and got photo.jfif instead of photo.jpg. Here is what that file is, why it happens, how to fix the files you already have and how to stop it for good.
The short answer
A .jfif file is a normal JPEG picture with an unusual name. JFIF (JPEG File Interchange Format) is the small header that most JPEG files start with. The image data inside is the same as in a .jpg file, so in most cases you can rename photo.jfif to photo.jpg and every app will open it.
Why your computer saves .jfif
When you save an image from a web page, the browser asks the operating system which file extension belongs to the image type the server sent, here image/jpeg. On many Windows 10 and Windows 11 computers the answer is .jfif. Chrome and Edge follow that setting, so the downloaded file ends in .jfif even though the website served an ordinary JPEG.
The setting is stored in the Windows registry. Installing or removing some programs can change it, which is why one computer saves .jfif while another saves .jpg from the same page.
Fix the files you already have
For one file, rename it. In Windows File Explorer you may first need to turn on View, Show, File name extensions so the .jfif part is visible. Rename a copy first and keep the original until the new name opens correctly.
For a whole folder on Windows, open Command Prompt in that folder and run:
ren *.jfif *.jpgIf a file with the same .jpg name already exists, Windows reports a duplicate and leaves that file alone. Rename or move the clashing file and run the command again.
On a Mac, open Terminal, go to the folder with cd and run the loop below. The -n option stops it from overwriting an existing .jpg with the same name. We tested it on a folder with a file name containing spaces and with a name clash: the clashing file stayed as .jfif and nothing was overwritten.
for f in *.jfif; do mv -n "$f" "${f%.jfif}.jpg"; doneIf you would rather not use commands, the JFIF to JPG converter takes a whole batch and gives you .jpg files in one ZIP. It saves each picture again as a new JPEG, which applies light compression and drops metadata such as camera details and location. Renaming does neither, so rename when you want the exact original.
Stop Windows from saving .jfif
This changes a registry value. Editing the registry incorrectly can cause problems, so make a backup first with File, Export in Registry Editor, and skip this section if the computer is managed by an employer or school.
- Press Windows + R, type
regeditand press Enter. - Go to
HKEY_CLASSES_ROOT\MIME\Database\Content Type\image/jpeg. - Double-click the value named Extension. If it says
.jfif, change it to.jpgand click OK. - Close and reopen the browser, then save a picture from a web page to check the new name.
Some program updates set the value back to .jfif. If the problem returns, check the same value again.
When renaming does not work
Sometimes the file is not a JPEG at all. Websites often serve WebP or PNG images, and a file can end up with a .jfif name after being copied between apps. Renaming such a file to .jpg gives it the wrong extension, and strict upload forms check the real content and reject it.
The first bytes of a file show what it really is. We created a JPEG, a PNG and a WebP from the same 1200 x 800 test picture and read their first bytes:
| Real format | First bytes (hex) | Readable part |
|---|---|---|
| JPEG with JFIF header | FF D8 FF E0 00 10 4A 46 49 46 | JFIF |
| PNG | 89 50 4E 47 0D 0A 1A 0A | .PNG |
| WebP | 52 49 46 46 .. .. .. .. 57 45 42 50 | RIFF....WEBP |
Every JPEG starts with FF D8 FF. A photo straight from a camera or phone usually has FF E1 and the word Exif next, instead of the JFIF header, and is still a normal JPEG.
On a Mac, the Terminal command file photo.jfif prints the real type, for example JPEG image data, JFIF standard 1.01. On Windows, open the file in Notepad and look at the first characters: you will see JFIF or Exif near the start of a JPEG, PNG at the start of a PNG, and RIFF followed by WEBP for a WebP.
If the file turns out to be WebP or PNG, use the WebP to JPG or PNG to JPG converter to get a real JPEG instead of renaming it.
Is JFIF lower quality than JPG?
No. The extension does not change the picture. A .jfif file and a .jpg file with the same content are identical byte for byte except for the name. Quality only changes when a picture is decoded and saved again, which is what any converter does.