List of file signatures


This is a list of file signatures, data used to identify or verify the content of a file. Such signatures are also known as magic numbers or Magic Bytes.
Many file formats are not intended to be read as text. If such a file is accidentally viewed as a text file, its contents will be unintelligible. However, sometimes the file signature can be recognizable when interpreted as text. The column ISO 8859-1 shows how the file signature appears when interpreted as text in the common ISO 8859-1 encoding, with unprintable characters represented as ..
Hex signatureISO 8859-1OffsetFilename extensionDescription
23 21
0Script or data to be passed to the program following the shebang.
a1 b2 c3 d4

d4 c3 b2 a1

0pcapLibpcap File Format
0a 0d 0d 0a
....
0pcapngPCAP Next Generation Dump File Format
ed ab ee db
0rpmRedHat Package Manager package
53 51 4c 69 74 65 20 66 6f 72 6d 61 74 20 33 00
SQLite format 3.
0sqlitedb
sqlite
db
SQLite Database
53 50 30 31
SP01
0binAmazon Kindle Update Package
00
.
0PIC
PIF
SEA
YTR
IBM Storyboard bitmap file

Windows Program Information File

Mac Stuffit Self-Extracting Archive

IRIS OCR data file
00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00
........
........
........
11PDBPalmPilot Database/Document File
BE BA FE CA
0DBAPalm Desktop Calendar Archive
00 01 42 44
..BD
0DBAPalm Desktop To Do Archive
00 01 44 54
..DT
0TDAPalm Desktop Calendar Archive
54 44 46 24
TDF$
0TDF$Telegram Desktop File
54 44 45 46
TDEF
0TDEFTelegram Desktop Encrypted File
00 01 00 00
0Palm Desktop Data File
00 00 01 00
....
0icoComputer icon encoded in ICO file format
66 74 79 70 33 67
ftyp3g
43gp
3g2
3rd Generation Partnership Project 3GPP and 3GPP2 multimedia files
1F 9D
..
0z
tar.z
compressed file

using Lempel-Ziv-Welch algorithm
1F A0
0z
tar.z
Compressed file

using LZH algorithm
42 41 43 4B 4D 49 4B 45
44 49 53 4B
BACKMIKE
DISK
0bacFile or tape containing a backup done with AmiBack on an Amiga.
It typically is paired with an index file with the table of contents.
42 5A 68
BZh
0bz2Compressed file using Bzip2 algorithm
47 49 46 38 37 61

47 49 46 38 39 61
GIF87a

GIF89a
0gifImage file encoded in the Graphics Interchange Format
49 49 2A 00

4D 4D 00 2A
II*.

MM.*
0tif
tiff
Tagged Image File Format
49 49 2A 00 10 00 00 00
43 52
II*.....
CR
0cr2Canon RAW Format Version 2
Canon's RAW format is based on the TIFF file format
80 2A 5F D7
.*_.
0cinKodak Cineon image
52 4E 43 01

52 4E 43 02
RNC.
0Compressed file using algorithm
53 44 50 58


58 50 44 53
SDPX

XPDS
0dpxSMPTE DPX image
76 2F 31 01
v/1.
0exrOpenEXR image
42 50 47 FB
BPGû
0bpgBetter Portable Graphics format
FF D8 FF DB


FF D8 FF E0 00 10 4A 46 49 46 00 01

FF D8 FF EE
FF D8 FF E1 ?? ?? 45 78 69 66 00 00
ÿØÿÛ


ÿØÿà..JFIF..

ÿØÿî
ÿØÿá..Exif..
0jpg
jpeg
JPEG raw or in the JFIF or Exif file format
46 4F 52 4D ?? ?? ?? ?? 49 4C 42 4D
FORM....
ILBM
0
any
ilbm
lbm
ibm
iff
IFF Interleaved Bitmap Image
46 4F 52 4D ?? ?? ?? ?? 38 53 56 58
FORM....
8SVX
0
any
8svx
8sv
svx
snd
iff
IFF 8-Bit Sampled Voice
46 4F 52 4D ?? ?? ?? ?? 41 43 42 4D
FORM....
ACBM
0
any
acbm
iff
Amiga Contiguous Bitmap
46 4F 52 4D ?? ?? ?? ?? 41 4E 42 4D
FORM....
ANBM
0
any
anbm
iff
IFF Animated Bitmap
46 4F 52 4D ?? ?? ?? ?? 
41 4E 49 4D
FORM....
ANIM
0
any
anim
iff
IFF CEL Animation
46 4F 52 4D ?? ?? ?? ?? 46 41 58 58
FORM....
FAXX
0
any
faxx
fax
iff
IFF Facsimile Image
46 4F 52 4D ?? ?? ?? ?? 46 54 58 54
FORM....
FTXT
0
any
ftxt
iff
IFF Formatted Text
46 4F 52 4D ?? ?? ?? ?? 53 4D 55 53
FORM....
SMUS
0
any
smus
smu
mus
iff
IFF Simple Musical Score
46 4F 52 4D ?? ?? ?? ?? 43 4D 55 53
FORM....
CMUS
0
any
cmus
mus
iff
IFF Musical Score
46 4F 52 4D ?? ?? ?? ?? 59 55 56 4E
FORM....
YUVN
0
any
yuvn
yuv
iff
IFF YUV Image
46 4F 52 4D ?? ?? ?? ?? 46 41 4E 54
FORM....
FANT
0
any
iffAmiga Fantavision Movie
46 4F 52 4D ?? ?? ?? ?? 41 49 46 46
FORM....
AIFF
0
any
aiff
aif
aifc
snd
iff
Audio Interchange File Format
49 4E 44 58
INDX
0idxIndex file to a file or tape containing a backup done with AmiBack on an Amiga.
4C 5A 49 50
LZIP
0lzlzip compressed file
4D 5A
MZ
0exe
dll
DOS MZ executable file format and its descendants
50 4B 03 04


50 4B 05 06


50 4B 07 08
PK..
0zip
aar
apk
docx
epub
ipa
jar
kmz
maff
odp
ods
odt
pk3
pk4
pptx
usdz
vsdx
xlsx
xpi
zip file format and formats based on it, such as EPUB, JAR, ODF, OOXML
52 61 72 21 1A 07 00
Rar!...

0rarRAR archive version 1.50 onwards
52 61 72 21 1A 07 01 00
Rar!....
0rarRAR archive version 5.0 onwards
5A 4D
ZM
0exeDOS ZM executable file format and its descendants
7F 45 4C 46
.ELF
0Executable and Linkable Format
89 50 4E 47 0D 0A 1A 0A
.PNG....
0pngImage encoded in the Portable Network Graphics format
C9
È
0comCP/M 3 and higher with overlays
CA FE BA BE
Êþº¾
0classJava class file, Mach-O Fat Binary
EF BB BF

0UTF-8 encoded Unicode byte order mark, commonly seen in text files.
FE ED FA CE
........
0
0x1000
Mach-O binary
FE ED FA CF
........
0
0x1000
Mach-O binary
FE ED FE ED
þíþí
0JKS
CE FA ED FE
........
0Mach-O binary
CF FA ED FE
........
0Mach-O binary
FF FE
..
0Byte-order mark for text file encoded in little-endian 16-bit Unicode Transfer Format
FF FE 00 00
....
0Byte-order mark for text file encoded in little-endian 32-bit Unicode Transfer Format
25 21 50 53
%!PS
0psPostScript document
49 54 53 46 03 00 00 00 60 00 00 00
ITSF....`...
0chmMS Windows HtmlHelp Data
25 50 44 46 2d
%PDF-
0pdfPDF document
30 26 B2 75 8E 66 CF 11
A6 D9 00 AA 00 62 CE 6C
0&²u.fÏ
.¦Ù.ª.bÎl
0asf
wma
wmv
Advanced Systems Format
24 53 44 49 30 30 30 31
$SDI0001
0System Deployment Image, a disk image format used by Microsoft
4F 67 67 53
OggS
0ogg
oga
ogv
Ogg, an open source media container format
38 42 50 53
8BPS
0psdPhotoshop Document file, Adobe Photoshop's native file format
52 49 46 46 ?? ?? ?? ?? 57 41 56 45
RIFF....
WAVE
0wavWaveform Audio File Format
52 49 46 46 ?? ?? ?? ?? 41 56 49 20
RIFF....
AVI.
0aviAudio Video Interleave video format
FF FB


FF F3


FF F2

ÿû


ÿó


ÿò

0mp3MPEG-1 Layer 3 file without an ID3 tag or with an ID3v1 tag
49 44 33
ID3
0mp3MP3 file with an ID3v2 container
42 4D
BM
0bmp
dib
BMP file, a bitmap format used mostly in the Windows world
43 44 30 30 31
CD001
0x8001

0x8801
0x9001
isoISO9660 CD/DVD image file
53 49 4D 50 4C 45 20 20

3D 20 20 20 20 20 20 20
20 20 20 20 20 20 20 20
20 20 20 20 20 54
SIMPLE 
=

T
0fitsFlexible Image Transport System
66 4C 61 43
fLaC
0flacFree Lossless Audio Codec
4D 54 68 64
MThd
0mid
midi
MIDI sound file
D0 CF 11 E0 A1 B1 1A E1
0doc
xls
ppt
msg
Compound File Binary Format, a container format used for document by older versions of Microsoft Office. It is however an open format used by other programs as well.
64 65 78 0A 30 33 35 00
dex.035.
0dexDalvik Executable
4B 44 4D
KDM
0vmdkVMDK files
43 72 32 34
Cr24
0crxGoogle Chrome extension or packaged app
41 47 44 33
AGD3
0fh8FreeHand 8 document
05 07 00 00 42 4F 42 4F
05 07 00 00 00 00 00 00
00 00 00 00 00 01
....BOBO
........
....
0cwkAppleWorks 5 document
06 07 E1 00 42 4F 42 4F
06 07 E1 00 00 00 00 00
00 00 00 00 00 01
....BOBO
........
....
0cwkAppleWorks 6 document
45 52 02 00 00 00

8B 45 52 02 00 00 00
ER....

ãER....
0toastRoxio Toast disc image file, also some.dmg-files begin with same bytes
78 01 73 0D 62 62 60
x.s.bb`
0dmgApple Disk Image file
78 61 72 21
xar!
0xareXtensible ARchive format
50 4D 4F 43 43 4D 4F 43
PMOCCMOC
0datWindows Files And Settings Transfer Repository
See also USMT 3.0 and USMT 4.0 User Guides
4E 45 53 1A
NES
0nesNintendo Entertainment System ROM file
75 73 74 61 72 00 30 30

75 73 74 61 72 20 20 00
ustar.00

ustar .
0x101tartar archive
4F 41 52 ??
OAR.
0oarOAR file archive format, where ?? is the format version.
74 6F 78 33
TOX
0toxOpen source portable voxel file
4D 4C 56 49
MLVI
0MLVMagic Lantern Video file
44 43 4D 01 50 41 33 30
DCM PA30
0Windows Update
37 7A BC AF 27 1C
7z¼¯'
07z7-Zip File Format
1F 8B
..
0gz
tar.gz
GZIP compressed file
FD 37 7A 58 5A 00
²7zXZ..
0xz
tar.xz
XZ compression utility
using LZMA2 compression
04 22 4D 18
."M.
0lz4LZ4 Frame Format

Remark: LZ4 block format does not offer any magic bytes.
4D 53 43 46
MSCF
0cabMicrosoft Cabinet file
53 5A 44 44 88 F0 27 33
SZDD....
0Various. Microsoft compressed file in Quantum format, used prior to Windows XP. File can be decompressed using Extract.exe or Expand.exe distributed with earlier versions of Windows.
46 4C 49 46
FLIF
0flifFree Lossless Image Format
1A 45 DF A3
.Eߣ
0mkv
mka
mks
mk3d
webm
Matroska media container, including WebM
4D 49 4C 20
MIL 
0stg"SEAN : Session Analysis" Training file. Also used in compatible software "Rpw : Rowperfect for Windows" and "RP3W : ROWPERFECT3 for Windows".
41 54 26 54 46 4F 52 4D ?? ?? ?? ?? 44 4A 56
AT&TFORM....DJV
0djvu
djv
DjVu document
The following byte is either 55 for single-page or 4D for multi-page documents.
30 82
0.
0derDER encoded X.509 certificate
44 49 43 4D
DICM
0x80dcmDICOM Medical File Format
77 4F 46 46
wOFF
0woff
77 4F 46 32
wOF2
0woff2

3c 3f 78 6d 6c 20

0XMLeXtensible Markup Language when using the ASCII character encoding

00 61 73 6d

.asm
0wasmWebAssembly binary format

cf 84 01
0lepLepton compressed JPEG image

43 57 53
46 57 53
CWS
FWS
0swfflash.swf

21 3C 61 72 63 68 3E
!.0deblinux deb file

52 49 46 46 ?? ?? ?? ?? 57 45 42 50
RIFF....
WEBP
0webpGoogle WebP image file, where ?? ?? ?? ?? is the file size. More information on
27 05 19 56
'..V
0U-Boot / uImage. Das U-Boot Universal Boot Loader.
7B 5C 72 74 66 31

OWIKI.org. Text is available under the Creative Commons Attribution-ShareAlike License.