128个常见的文件头信息对照表

 

Mime Type(Content-Type) 文件扩展名 文件头
video/3gpp

3gp

  • 00 00 00 14 66 74 79 70
  • 00 00 00 14 66 74 79 70
  • 00 00 00 20 66 74 79 70
  • 00 00 00 20 66 74 79 70
video/mp4

mp4

  • 00 00 00 14 66 74 79 70 69 73 6f 6d
  • 00 00 00 18 66 74 79 70
  • 00 00 00 1c 66 74 79 70
video/3gpp2

3g2

  • 00 00 00 14 66 74 79 70
  • 00 00 00 20 66 74 79 70
video/x-m4v

m4v

  • 00 00 00 18 66 74 79 70
audio/mp4

m4a

  • 00 00 00 20 66 74 79 70 4d 34 41
image/x-icon

ico

  • 00 00 01 00
application/x-futuresplash

spl

  • 00 00 01 00
video/mpeg

mpg

  • 00 00 01 b3
  • 00 00 01 ba
video/x-ms-vob

vob

  • 00 00 01 ba
application/vnd.lotus-1-2-3

123

  • 00 00 1a 00 05 10 04
application/vnd.quark.quarkxpress

qxd

  • 00 00 49 49 58 50 52
  • 00 00 4d 4d 58 50 52
application/x-font-ttf

ttf

  • 00 01 00 00 00
application/x-msmoney

mny

  • 00 01 00 00 4d 53 49 53 41 4d 20 44 61 74 61 62 61 73 65
application/x-msaccess

mdb

  • 00 01 00 00 53 74 61 6e 64 61 72 64 20 4a 65 74 20 44 42
video/x-fli

fli

  • 00 11
image/x-rgb

rgb

  • 01 da 01 01 00 03
application/xml-dtd

dtd

  • 07 64 74 32 64 64 74 64
image/x-pcx

pcx

  • 0a 02 01 01
  • 0a 03 01 01
  • 0a 05 01 01
application/msword

doc

dot

  • 0d 44 4f 43
  • cf 11 e0 a1 b1 1a e1 00
  • d0 cf 11 e0 a1 b1 1a e1
  • db a5 2d 00
application/vnd.ms-works

wks

wps

  • 0e 57 4b 53
  • ff 00 02 00 04 04 05 54
  • d0 cf 11 e0 a1 b1 1a e1
application/vnd.nitf

ntf

  • 1a 00 00
  • 30 31 4f 52 44 4e 41 4e
  • 4e 49 54 46 30
application/vnd.lotus-notes

nsf

  • 1a 00 00 04 00 00
  • 4e 45 53 4d 1a 01
application/x-freearc

arc

  • 1a 02
  • 1a 03
  • 1a 04
  • 1a 08
  • 1a 09
  • 41 72 43 01
video/webm

webm

  • 1a 45 df a3
video/x-matroska

mkv

  • 1a 45 df a3 93 42 82 88
application/x-msdownload

msi

com

dll

exe

  • 23 20
  • d0 cf 11 e0 a1 b1 1a e1
  • 4d 5a
  • e8
  • e9
  • eb
audio/silk

sil

  • 23 21 53 49 4c 4b 0a
application/postscript

eps

  • 25 21 50 53 2d 41 64 6f
  • c5 d0 d3 c6
application/pdf

pdf

  • 25 50 44 46
application/vnd.fdf

fdf

  • 25 50 44 46
application/mac-binhex40

hqx

  • 28 54 68 69 73 20 66 69
text/plain

log

  • 00 2a 2a 2a 20 20 49 6e 73
application/vnd.rn-realmedia

rm

  • 2e 52 4d 46
application/vnd.rn-realmedia-vbr

rmvb

  • 2e 52 4d 46
audio/x-pn-realaudio

ra

ram

  • 2e 52 4d 46 00 00 00 12
  • 2e 72 61 fd 00
  • 72 74 73 70 3a 2f 2f
audio/basic

au

  • 2e 73 6e 64
  • 64 6e 73 2e
application/vnd.epson.msf

msf

  • 2f 2f 20 3c 21 2d 2d 20 3c 6d 64 62 3a 6d 6f 72 6b 3a 7a
application/vnd.ms-pki.seccat

cat

  • 30
video/x-ms-asf

asf

asx

  • 30 26 b2 75 8e 66 cf 11
  • 3c
audio/x-ms-wma

wma

  • 30 26 b2 75 8e 66 cf 11
video/x-ms-wmv

wmv

  • 30 26 b2 75 8e 66 cf 11
application/x-mswrite

wri

  • 31 be
  • 32 be
  • be 00 00 00 ab
application/x-7z-compressed

7z

  • 37 7a bc af 27 1c
image/vnd.adobe.photoshop

psd

  • 38 42 50 53
application/xml

xml

  • 3c 3f 78 6d 6c 20 76 65 72 73 69 6f 6e 3d 22 31 2e 30 22 3f 3e
application/vnd.framemaker

fm

  • 3c 4d 61 6b 65 72 46 69
application/vnd.mif

mif

  • 3c 4d 61 6b 65 72 46 69
  • 56 65 72 73 69 6f 6e 20
application/gpx+xml

gpx

  • 3c 67 70 78 20 76 65 72 73 69 6f 6e 3d 22 31 2e
application/winhlp

hlp

  • 3f 5f 03 00
  • 4c 4e 02 00
image/vnd.dwg

dwg

  • 41 43 31 30
application/vnd.lotus-organizer

org

  • 41 4f 4c 56 4d 31 30 30
text/x-vcard

vcf

  • 42 45 47 49 4e 3a 56 43
application/octet-stream

bin

dms

mar

  • 42 4c 49 32 32 33
  • 44 4d 53 21
  • 4d 41 52 31 00
  • 4d 41 52 43
  • 4d 41 72 30 00
image/bmp

bmp

  • 42 4d
application/x-mobipocket-ebook

prc

  • 42 4f 4f 4b 4d 4f 42 49
application/x-bzip2

bz2

  • 42 5a 68
application/x-iso9660-image

iso

  • 43 44 30 30 31
application/mac-compactpro

cpt

  • 43 50 54 37 46 49 4c 45
  • 43 50 54 46 49 4c 45
application/x-shockwave-flash

swf

  • 43 57 53
  • 46 57 53
  • 5a 57 53
application/x-cdlink

vcd

  • 45 4e 54 52 59 56 43 44
image/vnd.ms-modi

mdi

  • 45 50
video/x-flv

flv

  • 46 4c 56
audio/x-aiff

aiff

  • 46 4f 52 4d 00
message/rfc822

eml

  • 46 72 6f 6d
  • 52 65 74 75 72 6e 2d 50
  • 58 2d
image/gif

gif

  • 47 49 46 38
image/tiff

tif

tiff

  • 49 20 49
  • 49 49 2a 00
  • 4d 4d 00 2a
  • 4d 4d 00 2b
audio/mpeg

mp3

  • 49 44 33
application/vnd.ms-cab-compressed

cab

  • 49 53 63 28
  • 4d 53 43 46
application/vnd.ms-htmlhelp

chm

  • 49 54 53 46
application/java-archive

jar

  • 4a 41 52 43 53 00
  • 50 4b 03 04
  • 50 4b 03 04 14 00 08 00
  • 5f 27 a8 89
application/x-ms-shortcut

lnk

  • 4c 00 00 00 01 14 02 00
application/x-tgif

obj

  • 4c 01
  • 80
application/vnd.palm

pdb

  • 4d 2d 57 20 50 6f 63 6b
  • 4d 69 63 72 6f 73 6f 66 74 20 43 2f 43 2b 2b 20
  • 73 6d 5f
  • 73 7a 65 7a
  • ac ed 00 05 73 72 00 12
application/vnd.tcpdump.pcap

dmp

cap

  • 4d 44 4d 50 93 a7
  • 50 41 47 45 44 55
  • 52 54 53 53
  • 58 43 50 00
application/vnd.smaf

mmf

  • 4d 4d 4d 44 00 00
audio/midi

mid

midi

rmi

  • 4d 54 68 64
  • 52 49 46 46
application/vnd.rim.cod

cod

  • 4e 61 6d 65 3a 20
audio/ogg

oga

ogg

  • 4f 67 67 53 00 02 00 00
video/ogg

ogv

  • 4f 67 67 53 00 02 00 00
application/ogg

ogx

  • 4f 67 67 53 00 02 00 00
image/x-portable-graymap

pgm

  • 50 35 0a
application/zip

zip

  • 50 4b 03 04
  • 50 4b 03 04
  • 50 4b 03 04 14 00 01 00
  • 50 4b 05 06
  • 50 4b 07 08
application/vnd.openxmlformats-officedocument.wordprocessingml.document

docx

  • 50 4b 03 04
  • 50 4b 03 04 14 00 06 00
application/vnd.openxmlformats-officedocument.presentationml.presentation

pptx

  • 50 4b 03 04
  • 50 4b 03 04 14 00 06 00
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet

xlsx

  • 50 4b 03 04
  • 50 4b 03 04 14 00 06 00
application/vnd.google-earth.kmz

kmz

  • 50 4b 03 04
application/vnd.kde.kword

kwd

  • 50 4b 03 04
application/vnd.oasis.opendocument.text

odt

  • 50 4b 03 04
application/vnd.oasis.opendocument.presentation

odp

  • 50 4b 03 04
application/vnd.oasis.opendocument.text-template

ott

  • 50 4b 03 04
application/vnd.sun.xml.calc

sxc

  • 50 4b 03 04
  • 50 4b 03 04
application/vnd.sun.xml.draw

sxd

  • 50 4b 03 04
application/vnd.sun.xml.impress

sxi

  • 50 4b 03 04
application/vnd.sun.xml.writer

sxw

  • 50 4b 03 04
application/x-msmetafile

wmz

wmf

  • 50 4b 03 04
  • d7 cd c6 9a
application/x-xpinstall

xpi

  • 50 4b 03 04
application/vnd.ms-xpsdocument

xps

  • 50 4b 03 04
application/epub+zip

epub

  • 50 4b 03 04 0a 00 02 00
image/x-cmx

cmx

  • 52 49 46 46
video/x-msvideo

avi

  • 52 49 46 46
audio/x-wav

wav

  • 52 49 46 46
image/webp

webp

  • 52 49 46 46
application/x-rar-compressed

rar

  • 52 61 72 21 1a 07 00
application/x-stuffit

sit

  • 53 49 54 21 00
  • 53 74 75 66 66 49 74 20
application/vnd.yamaha.smaf-phrase

spf

  • 53 50 46 49 00
application/vnd.lotus-wordpro

lwp

  • 57 6f 72 64 50 72 6f
application/pls+xml

pls

  • 5b 70 6c 61 79 6c 69 73 74 5d
audio/x-caf

caf

  • 63 61 66 66
application/x-csh

csh

  • 63 75 73 68 00 00 00 02
application/pkcs10

p10

  • 64 00 00 00
audio/x-flac

flac

  • 66 4c 61 43 00 00 00 22
application/pkix-attr-cert

ac

  • 72 69 66 66
application/x-apple-diskimage

dmg

  • 78 01 73 0d 62 62 60
application/vnd.xara

xar

  • 78 61 72 21
application/rtf

rtf

  • 7b 5c 72 74 66 31
image/png

png

  • 89 50 4e 47 0d 0a 1a 0a
application/applixware

aw

  • 8a 01 09 00 00 00 e1 08
application/java-vm

class

  • ca fe ba be
application/vnd.ms-powerpoint

pps

ppt

  • d0 cf 11 e0 a1 b1 1a e1
application/vnd.ms-excel

xla

xls

  • d0 cf 11 e0 a1 b1 1a e1
audio/adpcm

adp

  • d0 cf 11 e0 a1 b1 1a e1
application/vnd.lotus-approach

apr

  • d0 cf 11 e0 a1 b1 1a e1
application/x-mspublisher

pub

  • d0 cf 11 e0 a1 b1 1a e1
application/vnd.visio

vsd

  • d0 cf 11 e0 a1 b1 1a e1
application/x-xz

xz

  • fd 37 7a 58 5a 00
application/vnd.wordperfect

wpd

  • ff 57 50 43
image/jpeg

jpe

jpeg

jpg

  • ff d8 ff
audio/x-aac

aac

  • ff f1
  • ff f9

你可能感兴趣的:(工具)