/tools/image-mime-type-checker

Image MIME Type Checker

See the MIME type an image file actually has, worked out from its bytes on the server rather than from its name, and spot files whose extension doesn't match what is inside.

Private & secure
Upload image or drag & drop
JPG · PNG · WebP · GIF · BMP · TIFF · HEIC

How to use the Image MIME Type Checker

01
Upload
Drop any image file.
02
Read the details
Size, dimensions, format and metadata in one view.
03
Clean up
Remove what you don’t want to share, then download.

What a MIME type is

A MIME type, also called a media type or content type, is a short label in the form type/subtype that tells browsers, servers and email clients what kind of data they are handling. Common image types are image/jpeg, image/png, image/webp, image/gif, image/avif, image/tiff, image/bmp, image/x-icon and image/svg+xml. HEIC photos use image/heic or image/heif.

Web servers send it in the Content-Type header, and upload forms often check it to decide whether to accept a file.

Why the file extension can lie

Your operating system and browser usually guess a file's type from its extension. Rename photo.png to photo.jpg and they will happily call it image/jpeg, even though nothing inside has changed. Images saved from websites are a frequent source of confusion: a WebP file is sometimes downloaded with a .jpg name.

Stricter services look at the file's actual bytes. When the real type doesn't match the name or isn't on their allowed list, the upload fails with a vague invalid file type message. This checker decodes the file on the server and reports the MIME type of the format it really is, so you can see the mismatch for yourself.

How to fix a mismatch

If the service accepts the real format, renaming the file with the correct extension is enough. If it requires a specific type, for example JPEG only, convert the file: WebP to JPG or PNG to JPG produce a genuine image/jpeg file, not just a new name.

For developers, the lesson is the same in reverse: set Content-Type from the decoded content rather than the uploaded file name, and validate uploads by reading them.

Supported formats

JPGPNGWebPGIFBMPTIFFHEIC

Files up to 25 MB. Large, high-resolution photos are supported.

Privacy

Your file is sent over HTTPS, processed in memory and returned straight away. It is never stored, never shared and never used for anything else. No account needed. How we handle files.

Image MIME Type Checker FAQ

Is image/jpg a valid MIME type?

No. The registered type is image/jpeg. Some software accepts image/jpg, but it is non-standard and strict validators may reject it.

Why does my browser report a different type?

Browsers usually go by the extension. The checker reads the file contents instead. If the server can't determine a type, the browser's guess is shown.

What is the MIME type of an SVG?

image/svg+xml. SVG is a text-based XML format, so it is detected from its markup rather than a binary signature.

Does the checker tell me if a file is damaged?

Partly. The file has to decode successfully to be checked. If it is corrupt or not an image at all, you get an error instead of a result.

Can renaming a file change its MIME type?

Only the guessed type. The real type is set by the format of the data, which only a conversion changes.

Are my images safe?

Your file is sent over HTTPS, processed in memory and returned straight away. It is never stored, never shared and never used for anything else.

Is it free?

Yes. No account, no watermark and no limit on how many images you process. Files can be up to 25 MB.

Related tools

See all 11 metadata tools →