JFIF to PNG

Published Updated

Convert your JFIF image to a widely compatible PNG file and download the result in seconds — free, private, and processed entirely in your browser.

A .jfif file is already a JPEG

Before converting, know what the file is. JFIF stands for JPEG File Interchange Format, published in 1992, and it describes how JPEG data is wrapped so different programs can read it (JFIF 1.02). A .jfif file contains an ordinary JPEG image, and MDN lists .jfif among the extensions of the image/jpeg type (MDN image format guide). Some Windows setups save downloaded pictures with that extension, which many sites and apps then refuse.

If rejection is your only problem, renaming the file to .jpg is faster and keeps the exact bytes. This converter is for when you specifically want a PNG.

What is inside a .jfif file

A JFIF file starts with two markers. FF D8 means the image begins, and FF E0 opens a small APP0 segment that holds the letters JFIF, a version number, the pixel density and an optional thumbnail. Standard JPEG data follows, with one component for greyscale or three for colour, in the YCbCr colour space (JFIF 1.02). A JPEG written by Chromium in the test below began ff d8 ff e0 00 10 4a 46 49 46 00 01 01 00 00 01 00 01, which reads as version 1.01, density units 0 (a pixel aspect ratio rather than dots per inch) and a density of 1 by 1.

That gives a quick check. On macOS, running file picture.jfif in a terminal printed "JPEG image data, JFIF standard 1.01" for a test JPEG. If yours reports a different format, the extension is wrong and a different converter fits better.

Rename or convert?

What you needBest route
An upload form that rejects .jfifRename to .jpg. No change to the picture.
A PNG for editing or design softwareConvert here. The pixels are copied losslessly.
A smaller fileKeep the JPEG. PNG will be larger.
TransparencyNeither route adds it. A JPEG has no alpha channel.

Converting a JFIF to PNG

  1. Step 1

    Add a .jfif file

    One image at a time. The preview shows its size once the browser has decoded it.

  2. Step 2

    Press Convert to PNG

    The picture is redrawn at its original pixel size and saved losslessly. Nothing is resized.

  3. Step 3

    Download the .png

    The file keeps your original name with a .png extension. The card shows the new dimensions.

What the conversion does

The browser decodes the JPEG and the tool draws it onto a canvas of the same width and height, then exports the canvas as a PNG. That means the output has the same dimensions as the input, one file per run, and no EXIF block. Because the browser does the decoding, the file only has to be something it can display.

What the PNG keeps, and what it does not

The browser decodes the JPEG into 8-bit red, green, blue and alpha values, the tool draws them at full size on a canvas, and the canvas is exported as a PNG. PNG compresses without loss (PNG specification), so it reproduces those decoded pixels exactly, blocky JPEG artefacts included. In Chromium 152 the file held only the three required chunk types: the header, the image data in many pieces, and an end marker. The optional chunks the specification defines for pixel density, colour profiles and EXIF were all absent, so none of that is carried over.

Measured: the same picture as JPEG and as PNG

Two images of 2000 × 1500 pixels were generated by a script in Chromium 152: a photo-like scene with smooth tones and fine grain, and a screenshot-like scene with flat colours, text and a gradient. Each was saved as a JPEG with the browser's own encoder, then taken through the steps this tool uses (load as an image, draw on a canvas at full size, export as PNG). Uncompressed, 2000 × 1500 pixels at 4 bytes each is 12,000,000 bytes. Sizes are decimal.

Test imageJPEG (the .jfif)PNGPNG is
Photo-like, JPEG quality 92933 KB4.55 MB4.9 times larger
Photo-like, JPEG quality 75326 KB3.80 MB11.7 times larger
Screenshot-like, JPEG quality 9279 KB238 KB3.0 times larger

The lower the JPEG quality, the bigger the gap, because the PNG has to store every decoded pixel whatever the JPEG saved. The PNG of the photo-like scene made directly, with no JPEG step, was 6.02 MB, so the JPEG round trip trimmed grain and helped the PNG a little. These are synthetic images, and a real photo will land elsewhere. The guide JPG, PNG, WebP, HEIC and SVG: which image format to use explains why lossless costs bytes.

Limits worth knowing

A file the browser cannot decode gets an error message (seen with a junk file in Google Chrome 156 and Playwright's WebKit build (user agent Version/26.6, not the Safari app)). Open the file in a browser tab to confirm, and if it will not open there, the file may be damaged, or in a format the browser cannot display. The tool also does not check the image size before drawing it, unlike some other image tools on this site that stop at 10,000 pixels on a side. If the button returns to Convert with no download, the browser could not produce the PNG, which can happen with extremely large pictures. Try Resize Image first. A file that opens fine as a .jpg is also handled by JPG to PNG.

JFIF to PNG, answered

Is a JFIF file the same as a JPEG?

Yes, for practical purposes. JFIF is the common way of wrapping JPEG data, and the JFIF specification adds only a mandatory APP0 marker right after the start of the JPEG data. MDN lists .jfif among the file extensions of the image/jpeg type.

Can I just rename .jfif to .jpg?

Usually, yes. The bytes are already a JPEG, so a rename is enough for upload forms and apps that reject the .jfif extension. Convert to PNG only when you need a PNG.

Will the PNG look better than the JFIF?

No. PNG keeps the decoded pixels exactly, including any JPEG blockiness. It cannot restore detail that JPEG compression removed.

Why is the PNG so much larger?

JPEG is lossy and small. PNG is lossless, so a photo of a few hundred kilobytes can become several megabytes.

Does it keep EXIF data and the right rotation?

EXIF fields such as camera model and GPS are not copied. Current browsers apply the stored rotation when they draw the image, so the PNG should be upright.

How can I tell my .jfif is really a JPEG?

Look at the first bytes. A JFIF file begins ff d8 ff e0, then a length, then the letters JFIF. On macOS, the file command printed 'JPEG image data, JFIF standard 1.01' for a test JPEG. If it names another format, such as HEIF or WebP, convert it with the tool for that format instead.

Does the PNG keep my picture's DPI or colour profile?

No. In Chromium 152 the PNG held only the header, image data and end chunks, with no pixel density, colour profile or EXIF chunk. The pixel dimensions stay the same. If you need a print size, set it again in your editing program.

I chose my file and nothing happened. What now?

The tool shows an error saying it could not read the image, which may be damaged or not an image the browser can open. Open the file in a browser tab. If it does not display there, it may be damaged or a different format with a .jfif name.

Related Tools