This table of file signatures (aka "magic numbers") is a continuing work-in-progress. I have found little information on this in a single place, with the exception of the table in Forensic Computing: A Practitioner's Guide by T. Sammes & B. Jenkinson (Springer, 2000); that was my inspiration to start this list in 2002. See also Wikipedia's List of file signatures. Comments, additions, and queries can be sent to Gary Kessler at [email protected].
This list is not exhaustive. Interpret the table as the magic number generally indicating the file type rather than the file type always having the given magic number. If you want to know to what a particular file extension refers, check out some of these sites:
- File Extension Seeker: Metasearch engine for file extensions
- FILExt.com
- FileInfo.com
- Wotsit.org, The Programmer's File and Data Resource
- DOT.WHAT?
- File-Extensions.org
Some other useful information:
The File Signatures Web site searches a database based upon file extension or file signature.
Check out Tim Coakley's Filesig.co.uk site, with Filesig Manager and Simple Carver. Also, see Tim's SQLite Database Catalog page, "a repository of information used to identify specific SQLite databases and properties for research purposes."
See Marco Pontello's TrID - File Identifier, a utility designed to identify file types from their binary signatures.
My software utility page contains a custom signature file based upon this list, for use with FTK, Scalpel, Simple Carver, Simple Carver Lite, and TrID.
Additional details on graphics file formats can be found at The Graphics File Formats Page and the Sustainability of Digital Formats Planning for Library of Congress Collections site.
Additional details on audio and video file formats can also be found at the Sustainability of Digital Formats Planning for Library of Congress Collections site.
Another collection of many types of file format specifications can be found at Alex Kirk's File Format Documentation Collection.
If you are using a Linux/Unix system, you can use the file command to determine the file type based upon the file signature, per the system's magic file.
And, one last and final item if you are searching for network traffic in raw binary files (e.g., RAM or unallocated space), see Hints About Looking for Network Packet Fragments.
ACKNOWLEDGEMENTS & COPYRIGHT NOTICE
Hex Signature ASCII Signature File Extension File Description TGA Truevision Targa Graphic file
Trailer:
54 52 55 45 56 49 53 49 TRUEVISI
4F 4E 2D 58 46 49 4C 45 ON-XFILE
2E 00 ..00 . PIC IBM Storyboard bitmap file MOV Apple QuickTime movie file PIF Windows Program Information File SEA Mac Stuffit Self-Extracting Archive YTR IRIS OCR data file 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00........
........XXX Compucon/Singer embroidery design file [11 byte offset]
00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00[11 byte offset]
........
........
........PDB Palmpilot Database/Document File [512 (0x200) byte offset]
00 00 00 00 00 00 00 00[512 (0x200) byte offset]
........RVT Revit Project File subheader 00 00 00 00 14 00 00 00 ........ TBI Windows Disk Image file 00 00 00 0C 6A 50 20 20
0D 0A....jP
..JP2 Various JPEG-2000 image file formats 00 00 00 14 66 74 79 70
33 67 70....ftyp
3gp3GG, 3GP, 3G2 3rd Generation Partnership Project 3GPP multimedia files 00 00 00 14 66 74 79 70
69 73 6F 6D....ftyp
isomMP4 ISO Base Media file (MPEG-4) v1 00 00 00 14 66 74 79 70
71 74 20 20....ftyp
qtMOV QuickTime movie file 00 00 00 18 66 74 79 70
33 67 70 35....ftyp
3gp5MP4 MPEG-4 video files 00 00 00 18 66 74 79 70
6D 70 34 32....ftyp
mp42M4V MPEG-4 video/QuickTime file 00 00 00 1C 66 74 79 70
4D 53 4E 56 01 29 00 46
4D 53 4E 56 6D 70 34 32....ftyp
MSNV.).F
MSNVmp42MP4 MPEG-4 video file 00 00 00 20 66 74 79 70
33 67 70....ftyp
3gp3GG, 3GP, 3G2 3rd Generation Partnership Project 3GPP2 multimedia files 00 00 00 20 66 74 79 70
4D 34 41 20... ftyp
M4AM4A Apple Lossless Audio Codec file 00 00 01 00 .... ICO Windows icon file SPL Windows NT/2000/XP printer spool file 00 00 01 Bx .... MPEG, MPG MPEG video file
Trailer:
00 00 01 B7 (...·)00 00 01 BA ....º MPG, VOB DVD Video Movie File (video/dvd, video/mpeg) or DVD MPEG2
Trailer:
00 00 01 B9 (...¹)00 00 02 00 ...... CUR Windows cursor file WB2 QuattroPro for Windows Spreadsheet file 00 00 02 00 06 04 06 00
08 00 00 00 00 00........
......WK1 Lotus 1-2-3 spreadsheet (v1) file 00 00 1A 00 00 10 04 00
00 00 00 00........
....WK3 Lotus 1-2-3 spreadsheet (v3) file 00 00 1A 00 02 10 04 00
00 00 00 00........
....WK4, WK5 Lotus 1-2-3 spreadsheet (v4, v5) file 00 00 1A 00 05 10 04 ....... 123 Lotus 1-2-3 spreadsheet (v9) file 00 00 49 49 58 50 52 or ..IIXPR 00 00 4D 4D 58 50 52 ..MMXPR QXD Quark Express document (Intel & Motorola, respectively)
NOTE: It appears that the byte following the 0x52 ("R") is
the language indicator; 0x33 ("3") seems to indicate English
and 0x61 ("a") reportedly indicates Korean.00 00 FE FF ..þÿ n/a Byte-order mark for 32-bit Unicode Transformation Format/
4-octet Universal Character Set (UTF-32/UCS-4), big-endian files.
(See the Unicode Home Page.)[6 byte offset]
00 00 FF FF FF FF[6 byte offset]
..ÿÿÿÿHLP Windows Help file 00 01 00 00 00 ..... TTF TrueType font file 00 01 00 00 4D 53 49 53
41 4D 20 44 61 74 61 62
61 73 65....MSIS
AM Datab
aseMNY Microsoft Money file 00 01 00 00 53 74 61 6E
64 61 72 64 20 41 43 45
20 44 42....Stan
dard ACE
DBACCDB Microsoft Access 2007 file 00 01 00 00 53 74 61 6E
64 61 72 64 20 4A 65 74
20 44 42....Stan
dard Jet
DBMDB Microsoft Access file 00 01 00 08 00 01 00 01
01........
.IMG Ventura Publisher/GEM VDI Image Format Bitmap file 00 01 01 ... FLT OpenFlight 3D file 00 01 42 41 ..BA ABA Palm Address Book Archive file 00 01 42 44 ..BD DBA Palm DateBook Archive file 00 06 15 61 00 00 00 02
00 00 04 D2 00 00 10 00...a....
...Ò....DB Netscape Navigator (v4) database file 00 0D BB A0 ..» n/a Mbox table of contents file. (NOTE: The next four bytes
appear to be the number of e-mails in the associated mbox file.)00 11 AF ..¯ FLI FLIC Animation file 00 14 00 00 01 02 xx xx
03........
.n/a BIOS details in RAM images 00 1E 84 90 00 00 00 00 ....... SNM Netscape Communicator (v4) mail folder 00 5C 41 B1 FF .\A±ÿ ENC Mujahideen Secrets 2 encrypted file 00 BF .¿ SOL Adobe Flash shared object file (e.g., Flash cookies) [512 (0x200) byte offset]
00 6E 1E F0[512 (0x200) byte offset]
.n.ðPPT PowerPoint presentation subheader (MS Office) 00 FF FF FF FF FF FF FF
FF FF FF 00 00 02 00 01.ÿÿÿÿÿÿÿ
ÿÿÿ.....MDF Alcohol 120% CD image 01 00 00 00 .... EMF Extended (Enhanced) Windows Metafile Format, printer spool file
(0x18-17 & 0xC4-36 is Win2K/NT; 0x5C0-1 is WinXP)01 00 00 00 01 ..... PIC Unknown type picture file 01 00 09 00 00 03 ...... WMF Windows Metadata file (Win 3.x format) 01 00 39 30 ..90 FDB, GDB Firebird and Interbase database files, respectively. See
IBPhoenix for more information.01 01 47 19 A4 00 00 00
00 00 00 00..G.#xA4...
....TBI