Binary:
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
Printable:
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00

基于二进制内容的文件类型探测器

文件的扩展名有时并不可靠,我们可以任意更改文件的扩展名。

该工具根据读取文件二进制的魔法数字,来确定文件真正的扩展名及 MIME Type。

文件魔法数字列表

以下是部分魔法数字列表,更多见List of file signatures

文件魔法数字ISO-8859-1偏移扩展名MIME Type
47 49 46 38 37 61G I F 8 7 a0gifimage/gif
47 49 46 38 39 61G I F 8 9 a0gifimage/gif
FF D8 FF DBÿ Ø ÿ Û0jpegimage/jpeg
FF D8 FF E0 ? ? 4A 46 49 46 00 01ÿ Ø ÿ à ? ? J F I F NUL SOH0jpegimage/jpeg
FF D8 FF E1 ? ? 45 78 69 66 00 00ÿ Ø ÿ á ? ? E x i f NUL NUL0jpegimage/jpeg
52 49 46 46 ? ? ? ? 57 45 42 50R I F F ? ? ? ? W E B P0webpimage/webp
66 74 79 70 6D 69 66 31f t y p m i f 14heifimage/heif
66 74 79 70 68 65 69 63f t y p h e i c4heicimage/heif
53 50 30 31S P 0 10binapplication/octet-stream
66 74 79f t y4mp4video/mp4
00 00 01 00NUL NUL SOH NUL0icoimage/x-icon
42 5A 68B Z h0bz2application/x-bzip2
49 49 2A 00I I * NUL0tifimage/tiff
4D 4D 00 2AM M NUL *0tiffimage/tiff
46 4F 52 4D ? ? ? ? 41 49 46 46F O R M ? ? ? ? A I F F0aiffaudio/x-aiff
50 4B 03 04P K ETX EOT0zipapplication/zip
50 4B 05 06P K ENQ ACK0zipapplication/zip
50 4B 07 08P K BEL BS0zipapplication/zip
50 4B 03 04P K ETX EOT0jarapplication/java-archive
50 4B 05 06P K ENQ ACK0jarapplication/java-archive
50 4B 07 08P K BEL BS0jarapplication/java-archive
50 4B 03 04P K ETX EOT0odtapplication/vnd.oasis.opendocument.text
50 4B 05 06P K ENQ ACK0odtapplication/vnd.oasis.opendocument.text
50 4B 07 08P K BEL BS0odtapplication/vnd.oasis.opendocument.text
50 4B 03 04P K ETX EOT0odsapplication/vnd.oasis.opendocument.spreadsheet
50 4B 05 06P K ENQ ACK0odsapplication/vnd.oasis.opendocument.spreadsheet
50 4B 07 08P K BEL BS0odsapplication/vnd.oasis.opendocument.spreadsheet
50 4B 03 04P K ETX EOT0odpapplication/vnd.oasis.opendocument.presentation
50 4B 05 06P K ENQ ACK0odpapplication/vnd.oasis.opendocument.presentation
50 4B 07 08P K BEL BS0odpapplication/vnd.oasis.opendocument.presentation
50 4B 03 04P K ETX EOT0docxapplication/vnd.openxmlformats-officedocument.wordprocessingml.document
50 4B 05 06P K ENQ ACK0docxapplication/vnd.openxmlformats-officedocument.wordprocessingml.document
50 4B 07 08P K BEL BS0docxapplication/vnd.openxmlformats-officedocument.wordprocessingml.document
50 4B 03 04P K ETX EOT0xlsxapplication/vnd.openxmlformats-officedocument.spreadsheetml.sheet
50 4B 05 06P K ENQ ACK0xlsxapplication/vnd.openxmlformats-officedocument.spreadsheetml.sheet
50 4B 07 08P K BEL BS0xlsxapplication/vnd.openxmlformats-officedocument.spreadsheetml.sheet
50 4B 03 04P K ETX EOT0pptxapplication/vnd.openxmlformats-officedocument.presentationml.presentation
50 4B 05 06P K ENQ ACK0pptxapplication/vnd.openxmlformats-officedocument.presentationml.presentation
50 4B 07 08P K BEL BS0pptxapplication/vnd.openxmlformats-officedocument.presentationml.presentation
52 61 72 21 1A 07 00R a r ! SUB BEL NUL0rarapplication/vnd.rar
52 61 72 21 1A 07 01 00R a r ! SUB BEL SOH NUL0rarapplication/vnd.rar
7F 45 4C 46DEL E L F0rarapplication/vnd.rar
89 50 4E 47 0D 0A 1A 0A‰ P N G CR LF SUB LF0pngimage/png
25 50 44 46% P D F0pdfapplication/pdf
4F 67 67 53O g g S0oggaudio/ogg
4F 67 67 53O g g S0ogaaudio/ogg
4F 67 67 53O g g S0ogvvideo/ogg
38 42 50 538 B P S0psdapplication/x-photoshop
52 49 46 46 ? ? ? ? 57 41 56 45R I F F ? ? ? ? W A V E0wavaudio/vnd.wave
52 49 46 46 ? ? ? ? 41 56 49 20R I F F ? ? ? ? A V I SPACE0avivideo/x-msvideo
FF FBÿ û0mp3audio/mpeg
49 44 33I D 30mp3audio/mpeg
42 4DB M0bmpimage/bmp
4D 54 68 64M T h d0midaudio/midi
4D 54 68 64M T h d0midiaudio/midi
D0 CF 11 E0 A1 B1 1A E1Ð Ï DC1 à ¡ ± SUB á0docapplication/msword
D0 CF 11 E0 A1 B1 1A E1Ð Ï DC1 à ¡ ± SUB á0xlsapplication/vnd.ms-excel
D0 CF 11 E0 A1 B1 1A E1Ð Ï DC1 à ¡ ± SUB á0pptapplication/vnd.ms-powerpoint
37 7A BC AF 27 1C7 z ¼ ¯ ' FS07zapplication/x-7z-compressed
1F 8BUS ‹0gzapplication/gzip
1F 8BUS ‹0tar.gzapplication/gzip
FD 37 7A 58 5A 00 00ý 7 z X Z NUL NUL0xzapplication/gzip
FD 37 7A 58 5A 00 00ý 7 z X Z NUL NUL0tar.xzapplication/gzip
1A 45 DF A3SUB E ß £0webmaudio/webm
3C 3f 78 6d 6C 20< ? x m l SPACE0xmlapplication/xml
43 57 53C W S0swfapplication/x-shockwave-flash
46 57 53F W S0swfapplication/x-shockwave-flash
7B 5C 72 74 66 31{ \ r t f 10rtfapplication/rtf
00 00 01 BANUL NUL SOH º0mpgvideo/mpeg
00 00 01 BANUL NUL SOH º0mpegvideo/mpeg
47G0mpegvideo/mpeg
00 00 01 B3NUL NUL SOH ³0mpegvideo/mpeg