Pacific Blue Software Logo

What Is This Image, Really?

How to Find an Image's Real File Type and What It Gives Away

A picture will not open, a website rejects an upload, or a photo is about to go to someone you do not know. Two questions come up: what kind of file is this really, and what else is inside it? The extension answers neither. .jpg is only part of the name, and anyone or anything can change it. A phone that saves HEIC, a download that is really a WebP, or a "photo" that is a ZIP archive all look the same in a folder.

The file itself always tells the truth. Every image format starts with a few fixed bytes, and most photos carry far more than the picture: the camera, the time, often the exact place, and sometimes things the sender never meant to share.

Checked on Windows 10 Pro 22H2 in November 2026.


The Real Type Is in the First Bytes

Each format begins with a signature, sometimes called a magic number. Programs that open images look at these bytes, not at the name:

Some files that are not images show up with picture names too: %PDF is a PDF, PK is a ZIP archive (as are modern Word and Excel files), and MZ is a Windows program. That last one, named photo.jpg.exe or simply photo.jpg, is a classic trick.


Check It With PowerShell

Format-Hex is built into Windows PowerShell 5.1, which every copy of Windows 10 and 11 has. This prints the first 16 bytes of the file, as hex and as text:

Format-Hex -Path C:\Pictures\photo.jpg | Select-Object -First 1

Compare the start of the line with the list above. A file called photo.png that starts FF D8 FF is a JPEG with the wrong name; most viewers will still open it, but some upload forms and older programs will not.


What a Photo Carries With It

Besides the picture, most image files hold metadata, in up to three overlapping systems:

In Windows, right-click the file, choose Properties and open the Details tab to see the common Exif fields, including latitude and longitude. It does not show everything, and it shows nothing for formats Windows has no codec for.


Things That Give Away More Than You Think

To remove the common fields, use Remove Properties and Personal Information at the bottom of the Details tab and choose to create a copy. Then check the copy: it does not reach every kind of metadata in every format.


Other Questions the File Can Answer


Image Info

Image Info is our free Windows tool that answers all of this in one window. Drop an image on it, or right-click one in Explorer:

Image Info showing a JPEG with badges for hidden data and a GPS location, and the file, type, integrity and privacy details

It reads JPEG, PNG and APNG, GIF, BMP, TIFF, WebP, ICO, HEIC, AVIF, JPEG XL, JPEG 2000, Photoshop, SVG and the main camera raw formats (DNG, CR2, CR3, NEF, ARW, ORF, RW2 and RAF). The details come from the file itself, so they are there even when Windows has no codec to show the picture. A 64-bit and a 32-bit build are included, and the whole report can be copied or saved as text.


Summary


Download Image Info

Useful References


The File Name Is Only a Label


Back to Articles for Developers
Back to Articles on Windows
Previous: How to Check if an EXE or DLL Is 32-bit or 64-bit
Next: How to Install a Certificate in Windows So It Is Trusted

If you found this useful, then please consider chipping in.
Chip In with PayPal
QR Code to chip in Please chip in if helpful