CHECK THE ACTUAL FILE

Identify an Image Format from Its File Bytes

Find the actual format when an image lacks an extension or an upload form rejects it.

Magic-byte detectionAVIF/HEIF brand checksNo SVG DOM injection
MAGODUCK Image Format Detector illustration
Processed in your browser · No file upload

JavaScript reads selected file headers or metadata. Supported previews use the browser image decoder.

The tool loads its interface and processing files from the site. This workflow handles the contents you select or enter in the browser.

Input per file
64 MiB

Limits are safeguards, not a guarantee every file below them will process. Complex files and device memory can require a smaller input.

Read the privacy policy

See how MAGODUCK tests tool outputs

1

Choose an image file

Detection reads a limited prefix of the file and does not rely on the extension alone.

Drop an image file here

JPEG, PNG, WebP, GIF, BMP, TIFF, ICO/CUR, AVIF, HEIC/HEIF or SVG

1 file · 64 MB max · detection reads only the required prefix
Choose a file to inspect.
HOW IT WORKS

Why file contents matter

Signatures, not names

A file named photo.jpg can still contain WebP or another format. This detector checks recognizable binary signatures such as PNG, JPEG, GIF, BMP, WebP, TIFF and ICO/CUR.

Container formats

AVIF and HEIC/HEIF use ISO Base Media File Format structures. MAGODUCK inspects the ftyp major and compatible brands and does not classify every file containing ftyp as an image.

SVG safety

SVG is text/XML rather than a binary raster format. Detection only inspects text for an SVG root element. The uploaded SVG is not inserted into the live page DOM.

Unknown is a valid result

If the available evidence does not identify a supported image type, the tool returns “Unknown / unsupported” instead of guessing from the filename.

DIRECT ANSWERS

Image Format Detector FAQs

Does this detector trust the file extension?

No. The extension is shown for comparison, but primary detection uses the file contents.

Can it distinguish AVIF from HEIC?

When recognizable ISO-BMFF brands are present, yes. AVIF brands such as avif/avis are separated from HEVC-oriented HEIC brands such as heic/heix. Generic HEIF structural brands may be reported as HEIF when a more specific codec brand is absent.

What happens if the extension and format disagree?

MAGODUCK shows a mismatch warning instead of silently accepting the filename.

Does the SVG check execute the file?

No. SVG content is treated as text for detection and is not injected as executable markup.

Technical note. Detection follows recognizable file signatures and ISO-BMFF brand evidence. Browser-reported MIME and filename extension are secondary comparison fields, not proof of the underlying format.

Format detector privacy

This implementation reads the selected file in the current browser tab and contains no MAGODUCK upload endpoint for format detection.