If not, you can use ultraedit to open several corresponding files for comparison.
1. the file header information extracted from ultraedit. The two characters are regarded as one byte (hexadecimal)
JPEG (JPG), file header: ffd8ff
PNG (PNG), file header: 89504e47
GIF, file header: 47494638
Tiff (TIF), file header: 492.16a00
Windows Bitmap (BMP), file header: mongod
CAD (DWG), file header: 41433130
Adobe Photoshop (PSD), file header: 38425053
Rich Text Format (RTF), file header: 7b5c727466
XML (XML), file header: 3c3f786d6c
HTML (HTML), file header: 68746d6c3e
Email [thorough only] (EML), file header: 44656c69766572792d646174243a
Outlook Express (DBX), file header: cfad12fec5fd746f
Outlook (PST), file header: 2142444e
MS word/Excel (xls.or.doc), file header: d0cf11e0
MS access (MDB), file header: 5374616e64617213204a
Wordperfect (WPD), file header: ff575043
Postscript (EPS. Or. ps), file header: 252150532d41646f6265
Adobe Acrobat (PDF), file header: 255044462d312e
Quicken (qdf), file header: ac9ebd8f
Windows Password (pwl), file header: e3828596
ZIP Archive (ZIP), file header: 504b0304
RAR Archive (RAR), file header: 52617221
Wave (WAV), file header: 57415645
AVI (AVI), file header: 41564920
Real Audio (RAM), file header: 2e00001fd
Real Media (RM), file header: 2e524d46
MPEG (MPG), file header: 000001ba
MPEG (MPG), file header: 000001b3
QuickTime (mov), file header: 6d6f6f76
Windows Media (ASF), file header: 3026b2758e66cf11
MIDI (MID), file header: 4d546864
Ii. List of file headers retrieved from winhex
File Type extensionsheader
Jpeg jpg; JPEG 0xffd8ff
PNG 0x89504e470d0a1a0a
GIF 8
Tiff TIF; tiff 0x4920.a00
Tiff TIF; tiff 0x4d4d002a
Bit Map BMP BM
Aol art art 0x4a47040e000000
Aol art art 0x4a47030e000000
PC paintbrush PCX 0x0a050108
Graphics Metafile WMF 0xd7csc69a
Graphics Metafile WMF 0x01000900
Graphics Metafile WMF 0x02000900
Enhanced Metafile EMF 0x0100000058000000
Corel Draw CDR
Cad dwg 0x41433130
Adobe Photoshop PSD 8bps
Rich Text Format RTF
XML
HTML; HTM; PHP; php3; PhP4; phtml; shtml type
Email EML delivery-Date:
Outlook Express DBX 0xcfad12fe
Outlookpst! BDN
MS Office/ole2 Doc; XLS; dot; PPT; xla; PPA; PPS; pot; MSI; SDW; DB 0xd0cf11e0a1b11ae1
MS access MDB; MDA; MDE; MDT Standard J
Wordperfect WPD 0xff575043
OpenOffice writer Sxw writer
OpenOffice calc SXC calc
OpenOffice math sxm math
OpenOffice impress sxi impress
OpenOffice draw sxd draw
Adobe framemaker FM <makerfile
Postscript EPS. Or. PS; EPS %! PS-Adobe
Adobe Acrobat PDF % PDF-1.
Quicken qdf 0xac9ebd8f
Quickbooks backup qbb 0x458600000600
Sage Sly. Or. srt. Or. Slt; sly; SRT; SLT 0x53520100
Sage Backup 1 sagebackup
Lotus wordpro V9 lwp 0x576f000000000000f
Lotus 123 V9 123 0x00001a00051004
Lotus 123 V5 wk4 0x00001a0002100400
Lotus 123 V3 wk3 0x00001a0000100400
Lotus 123 V1 wk1 0x2000604060
Windows Password PWL 0xe3828596
ZIP Archive zip; jar 0x504b0304
ZIP Archive (outdated) Zip 0x504b3030
RAR Archive RAR Rar!
GZ archive GZ; tgz 0x1f8b08
Bzip archive bz2 bzh
ARJ archive ARJ 0x60ea
7-ZIP Archive 7z 7z set'
Wave WAV Wave
Avi
Real Audio Ram; RA. Ra? 0
Real Media RM. RMF
Mpeg mpg; MPEG 0x000001ba
Mpeg mpg; MPEG 0x000001b3
QuickTime mov moov
Windows Media ASF 0x3026b2758e66cf11
MIDI mid mthd
Win32 executable (PE file can be executed) EXE; DLL; DRV; VxD; sys; OCX; vbx MZ
Win16 executable (PE file can be executed) EXE; DLL; DRV; VxD; sys; OCX; vbx MZ
Elf executable elf; 0x7f454c4601010100