Detect File Type

Attempts to guess the MIME (Multipurpose Internet Mail Extensions) type of the data based on 'magic bytes'.

Input: Text (UTF-8) or original file bytesResult: Text

Text input

Tool options

Examples

Identify a PNG image after its filename is changed to invoice.dat

Recognize the difference between a filename extension and the actual file signature; this is not a malware-safety scan.

Input

6908e133d3ce9bdb-invoice.dat

236,542 bytes

Download

Expected checks

Case-insensitive
Contains "PNG"
Images
On
Video
On
Audio
On
Documents
On
Applications
On
Archives
On
Miscellaneous
On
Recognize a PNG by bytes, sample 1

Recognize a PNG by bytes, sample 1. The input is a small public learning fixture; it contains no private production data.

Input

ef3636aa8fdd5351606a4257.bin

125 bytes

Download

Expected checks

Case-insensitive
Contains "image/png"
Images
On
Video
On
Audio
On
Documents
On
Applications
On
Archives
On
Miscellaneous
On
Recognize a PNG by bytes, sample 2

Recognize a PNG by bytes, sample 2. The input is a small public learning fixture; it contains no private production data.

Input

d5d8feb3c5e4e321684dc28d.bin

208 bytes

Download

Expected checks

Case-insensitive
Contains "image/png"
Images
On
Video
On
Audio
On
Documents
On
Applications
On
Archives
On
Miscellaneous
On
Recognize a PNG by bytes, sample 3

Recognize a PNG by bytes, sample 3. The input is a small public learning fixture; it contains no private production data.

Input

6908e133d3ce9bdbf3f72bd2.bin

236,542 bytes

Download

Expected checks

Case-insensitive
Contains "image/png"
Images
On
Video
On
Audio
On
Documents
On
Applications
On
Archives
On
Miscellaneous
On
Recognize a PNG by bytes, sample 4

Recognize a PNG by bytes, sample 4. The input is a small public learning fixture; it contains no private production data.

Input

b9c3f0acebb508c8e49de9db.bin

172 bytes

Download

Expected checks

Case-insensitive
Contains "image/png"
Images
On
Video
On
Audio
On
Documents
On
Applications
On
Archives
On
Miscellaneous
On
Recognize a PNG by bytes, sample 5

Recognize a PNG by bytes, sample 5. The input is a small public learning fixture; it contains no private production data.

Input

bccbeccd5d21f73684559f2e.bin

284 bytes

Download

Expected checks

Case-insensitive
Contains "image/png"
Images
On
Video
On
Audio
On
Documents
On
Applications
On
Archives
On
Miscellaneous
On
Identify Release notes as PDF

Identify Release notes as PDF. The input is a small public learning fixture; it contains no private production data.

Input

f98e766dc6c41fb3952da346.bin

587 bytes

Download

Expected checks

Case-insensitive
Contains "application/pdf"
Images
On
Video
On
Audio
On
Documents
On
Applications
On
Archives
On
Miscellaneous
On
Identify Invoice 0042 as PDF

Identify Invoice 0042 as PDF. The input is a small public learning fixture; it contains no private production data.

Input

9c52c6d96343aa237a1bfb08.bin

586 bytes

Download

Expected checks

Case-insensitive
Contains "application/pdf"
Images
On
Video
On
Audio
On
Documents
On
Applications
On
Archives
On
Miscellaneous
On
Identify The quick brown fox as PDF

Identify The quick brown fox as PDF. The input is a small public learning fixture; it contains no private production data.

Input

13575b1104696b1d4f6f19aa.bin

593 bytes

Download

Expected checks

Case-insensitive
Contains "application/pdf"
Images
On
Video
On
Audio
On
Documents
On
Applications
On
Archives
On
Miscellaneous
On
Identify A sample receipt as PDF

Identify A sample receipt as PDF. The input is a small public learning fixture; it contains no private production data.

Input

3caab3d79ce729821d3d9e50.bin

590 bytes

Download

Expected checks

Case-insensitive
Contains "application/pdf"
Images
On
Video
On
Audio
On
Documents
On
Applications
On
Archives
On
Miscellaneous
On
Identify A tiny PDF as PDF

Identify A tiny PDF as PDF. The input is a small public learning fixture; it contains no private production data.

Input

b149faf8feb9b670112e84dc.bin

584 bytes

Download

Expected checks

Case-insensitive
Contains "application/pdf"
Images
On
Video
On
Audio
On
Documents
On
Applications
On
Archives
On
Miscellaneous
On

Currently supports the following file types: 123d, 7z, B64, abcdp, accda, accdb, accde, accdu, ace, ai, aif, aifc, alz, amr, arj, arw, au, auf, avi, axf, bash, bct, bin, bitlocker, bk!, bmp, bplist, bz2, cab, cat, cer, chi, chm, chw, class, com, cr2, crl, crt, crw, crx, db, dbx, deb, der, dex, dll, dmf, dmg, dmp, doc, docx, dot, drv, dwg, dwt, dylib, edb, elf, eot, eps, epub, evt, evtx, exe, f4v, fdb, flac, flv, fon, gif, gpg, gz, hbin, hdr, heic, heif, hqx, ichat, ico, ipmeta, iso, jar, job, jpe, jpeg, jpg, jxr, keychain, kgb, lnk, luac, lzo, lzop, m4a, m4v, mda, mdb, mdbackup, mde, mdi, mdinfo, mdt, midi, mkv, mov, mp3, mp4, mpg, mpo, mrw, msg, msi, nib, o, ocx, ogg, ogm, ogv, ogx, ole2, one, opus, ost, otf, p7b, p7c, p7m, p7s, pab, pdf, pf, pfa, pgd, phar, php, php-s, php3, php4, php5, php7, phps, pht, phtml, pkr, pl, plist, pm, png, pod, pot, ppa, pps, ppt, pptx, prx, ps, psa, psb, psd, psp, pst, pwl, py, pyc, pyd, pyo, pyw, pyz, qtz, raf, rar, rb, registry, rgs, rsa, rtf, scr, sdw, sh, skr, sml, so, sqlite, strings, swf, swz, sys, t, tar, tar.z, tcp, tga, thm, tif, torrent, ttf, txt, udp, utf16le, utf32le, vbx, vhd, vmdk, vsd, vxd, wallet, wasm, wav, wcm, webbookmark, webhistory, webm, webp, wmv, woff, woff2, wp, wp5, wp6, wpd, wpp, xcf, xla, xls, xlsx, xz, zip, zlib.

Format reference: Detect File Type background and specification

Parameters

ParameterDefault valueInput and choices
ImagestrueOn or off
VideotrueOn or off
AudiotrueOn or off
DocumentstrueOn or off
ApplicationstrueOn or off
ArchivestrueOn or off
MiscellaneoustrueOn or off

Related tools

Browse forensics tools