Rename .jfif to .jpg? When It Works and When It Won't

Oct 14, 2026

Short answer: yes, renaming a .jfif file to .jpg is safe, and most of the time it is all you need. Renaming changes only the name; the bytes inside the file stay exactly the same, so it cannot damage or blur the photo. If someone told you renaming can corrupt the image, that is not how files work.

But "most of the time" is not "always". Plenty of people rename a file, upload it, and get the same "invalid file type" error. This page explains why renaming normally works, the four situations where it does not, and how to tell which one you are in.

Why renaming usually works

JPEG is the way the picture is compressed. JFIF (JPEG File Interchange Format) is the standard layout most JPEG files use, and it dates back to 1992. A file called photo.jfif and a file called photo.jpg normally contain the same kind of data: JPEG data in the JFIF layout. Only the label at the end of the name differs.

On Windows the .jfif label often comes from a setting rather than from the website you saved the picture from. Windows keeps a list of which extension goes with which file type. When that list says JPEG images should be saved as .jfif, browsers such as Chrome and Edge follow it. We explain that setting, and how to change it, in the guide on the home page.

Upload forms, older apps and some phones look at the extension to decide whether they accept a file. They know .jpg and .jpeg but not .jfif, so they reject a photo they could open perfectly well. Renaming fixes the label they are checking.

How to rename it properly

On Windows, the extension is often hidden, so renaming photo to photo.jpg quietly produces photo.jpg.jfif. Show extensions first:

  • Windows 11: in File Explorer, choose View → Show → File name extensions.
  • Windows 10: in File Explorer, open the View tab and tick File name extensions.

Then rename photo.jfif to photo.jpg and confirm the warning about changing the extension.

Many files at once on Windows: open the folder, type cmd in the address bar and press Enter, then run:

ren *.jfif *.jpg

On a Mac, open Terminal in the folder and run:

for f in *.jfif; do mv -- "$f" "${f%.jfif}.jpg"; done

When renaming does not help

1. The extension did not actually change

This is the most common one. With extensions hidden, the file is now photo.jpg.jfif and the form still sees .jfif. Turn on file name extensions as shown above and look at the full name.

2. The file is not a JPEG inside

A file's name and its contents are separate things. Now and then a file ends in .jfif (or .jpg) but actually holds a PNG, a WebP or another format, because a site or app labelled it wrongly. Renaming it to .jpg still leaves PNG or WebP data inside, and a strict form or an older app will still refuse it. This file needs a real conversion, not a new name.

3. The file is damaged or incomplete

If a download was interrupted, the file can start like a normal JPEG but stop halfway. Renaming it gives you a broken .jpg: it may show a grey band, show nothing, or be rejected. Download or save the picture again.

4. The form is rejecting something else

Many upload forms show a vague error for every problem. The real reason may be the file size (common limits are 2 MB or 5 MB), the image dimensions, or a different format altogether, such as a .heic photo from an iPhone. Read the form's rules for size and dimensions before blaming the extension.

How to check what a file really is

Every image format starts with a recognisable signature in its first few bytes:

The file really isIt starts with (hex)
JPEG (including JFIF)FF D8 FF
PNG89 50 4E 47
WebP52 49 46 46 ("RIFF"), then "WEBP" at byte 8
GIF47 49 46 38 ("GIF8")

To see them:

  • Windows: open PowerShell in the folder and run Format-Hex photo.jfif | Select-Object -First 1, then compare the first bytes with the table.
  • Mac: open Terminal in the folder and run file photo.jfif. It prints the real format in words, for example "JPEG image data, JFIF standard".
  • Any device: drop the file into the converter on our home page. It reads these bytes for you. For a real JPEG it copies the bytes unchanged under a .jpg name, which is the same result as renaming. For a file that is really PNG or WebP, it says so next to the file name and converts the image properly. Nothing is uploaded; it all happens in your browser.

Which one should you do?

  • One or two files, and you are comfortable with file extensions: rename them. It is instant and loses nothing.
  • A file that still gets rejected after renaming: check what it really is, using the table above or the converter.
  • Many files, a phone, or a computer where you cannot change settings: use a converter that runs in the browser, so the photos do not have to be uploaded anywhere.

If .jfif files keep showing up, fixing the Windows setting stops new ones appearing. Files you already have still need renaming or converting.

JFIF to JPG

JFIF to JPG