File Type Detector
Click or drag and drop to upload file
文件的扩展名有时并不可靠,我们可以任意更改文件的扩展名。
该工具根据读取文件二进制的魔法数字,来确定文件真正的扩展名及 MIME Type。
以下是部分魔法数字列表,更多见List of file signatures
文件魔法数字 | ISO-8859-1 | 偏移 | 扩展名 | MIME Type |
47 49 46 38 37 61 | G I F 8 7 a | 0 | gif | image/gif |
47 49 46 38 39 61 | G I F 8 9 a | 0 | gif | image/gif |
FF D8 FF DB | ÿ Ø ÿ Û | 0 | jpeg | image/jpeg |
FF D8 FF E0 ? ? 4A 46 49 46 00 01 | ÿ Ø ÿ à ? ? J F I F NUL SOH | 0 | jpeg | image/jpeg |
FF D8 FF E1 ? ? 45 78 69 66 00 00 | ÿ Ø ÿ á ? ? E x i f NUL NUL | 0 | jpeg | image/jpeg |
52 49 46 46 ? ? ? ? 57 45 42 50 | R I F F ? ? ? ? W E B P | 0 | webp | image/webp |
66 74 79 70 6D 69 66 31 | f t y p m i f 1 | 4 | heif | image/heif |
66 74 79 70 68 65 69 63 | f t y p h e i c | 4 | heic | image/heif |
53 50 30 31 | S P 0 1 | 0 | bin | application/octet-stream |
66 74 79 | f t y | 4 | mp4 | video/mp4 |
00 00 01 00 | NUL NUL SOH NUL | 0 | ico | image/x-icon |
42 5A 68 | B Z h | 0 | bz2 | application/x-bzip2 |
49 49 2A 00 | I I * NUL | 0 | tif | image/tiff |
4D 4D 00 2A | M M NUL * | 0 | tiff | image/tiff |
46 4F 52 4D ? ? ? ? 41 49 46 46 | F O R M ? ? ? ? A I F F | 0 | aiff | audio/x-aiff |
50 4B 03 04 | P K ETX EOT | 0 | zip | application/zip |
50 4B 05 06 | P K ENQ ACK | 0 | zip | application/zip |
50 4B 07 08 | P K BEL BS | 0 | zip | application/zip |
50 4B 03 04 | P K ETX EOT | 0 | jar | application/java-archive |
50 4B 05 06 | P K ENQ ACK | 0 | jar | application/java-archive |
50 4B 07 08 | P K BEL BS | 0 | jar | application/java-archive |
50 4B 03 04 | P K ETX EOT | 0 | odt | application/vnd.oasis.opendocument.text |
50 4B 05 06 | P K ENQ ACK | 0 | odt | application/vnd.oasis.opendocument.text |
50 4B 07 08 | P K BEL BS | 0 | odt | application/vnd.oasis.opendocument.text |
50 4B 03 04 | P K ETX EOT | 0 | ods | application/vnd.oasis.opendocument.spreadsheet |
50 4B 05 06 | P K ENQ ACK | 0 | ods | application/vnd.oasis.opendocument.spreadsheet |
50 4B 07 08 | P K BEL BS | 0 | ods | application/vnd.oasis.opendocument.spreadsheet |
50 4B 03 04 | P K ETX EOT | 0 | odp | application/vnd.oasis.opendocument.presentation |
50 4B 05 06 | P K ENQ ACK | 0 | odp | application/vnd.oasis.opendocument.presentation |
50 4B 07 08 | P K BEL BS | 0 | odp | application/vnd.oasis.opendocument.presentation |
50 4B 03 04 | P K ETX EOT | 0 | docx | application/vnd.openxmlformats-officedocument.wordprocessingml.document |
50 4B 05 06 | P K ENQ ACK | 0 | docx | application/vnd.openxmlformats-officedocument.wordprocessingml.document |
50 4B 07 08 | P K BEL BS | 0 | docx | application/vnd.openxmlformats-officedocument.wordprocessingml.document |
50 4B 03 04 | P K ETX EOT | 0 | xlsx | application/vnd.openxmlformats-officedocument.spreadsheetml.sheet |
50 4B 05 06 | P K ENQ ACK | 0 | xlsx | application/vnd.openxmlformats-officedocument.spreadsheetml.sheet |
50 4B 07 08 | P K BEL BS | 0 | xlsx | application/vnd.openxmlformats-officedocument.spreadsheetml.sheet |
50 4B 03 04 | P K ETX EOT | 0 | pptx | application/vnd.openxmlformats-officedocument.presentationml.presentation |
50 4B 05 06 | P K ENQ ACK | 0 | pptx | application/vnd.openxmlformats-officedocument.presentationml.presentation |
50 4B 07 08 | P K BEL BS | 0 | pptx | application/vnd.openxmlformats-officedocument.presentationml.presentation |
52 61 72 21 1A 07 00 | R a r ! SUB BEL NUL | 0 | rar | application/vnd.rar |
52 61 72 21 1A 07 01 00 | R a r ! SUB BEL SOH NUL | 0 | rar | application/vnd.rar |
7F 45 4C 46 | DEL E L F | 0 | rar | application/vnd.rar |
89 50 4E 47 0D 0A 1A 0A | P N G CR LF SUB LF | 0 | png | image/png |
25 50 44 46 | % P D F | 0 | application/pdf | |
4F 67 67 53 | O g g S | 0 | ogg | audio/ogg |
4F 67 67 53 | O g g S | 0 | oga | audio/ogg |
4F 67 67 53 | O g g S | 0 | ogv | video/ogg |
38 42 50 53 | 8 B P S | 0 | psd | application/x-photoshop |
52 49 46 46 ? ? ? ? 57 41 56 45 | R I F F ? ? ? ? W A V E | 0 | wav | audio/vnd.wave |
52 49 46 46 ? ? ? ? 41 56 49 20 | R I F F ? ? ? ? A V I SPACE | 0 | avi | video/x-msvideo |
FF FB | ÿ û | 0 | mp3 | audio/mpeg |
49 44 33 | I D 3 | 0 | mp3 | audio/mpeg |
42 4D | B M | 0 | bmp | image/bmp |
4D 54 68 64 | M T h d | 0 | mid | audio/midi |
4D 54 68 64 | M T h d | 0 | midi | audio/midi |
D0 CF 11 E0 A1 B1 1A E1 | Ð Ï DC1 à ¡ ± SUB á | 0 | doc | application/msword |
D0 CF 11 E0 A1 B1 1A E1 | Ð Ï DC1 à ¡ ± SUB á | 0 | xls | application/vnd.ms-excel |
D0 CF 11 E0 A1 B1 1A E1 | Ð Ï DC1 à ¡ ± SUB á | 0 | ppt | application/vnd.ms-powerpoint |
37 7A BC AF 27 1C | 7 z ¼ ¯ ' FS | 0 | 7z | application/x-7z-compressed |
1F 8B | US | 0 | gz | application/gzip |
1F 8B | US | 0 | tar.gz | application/gzip |
FD 37 7A 58 5A 00 00 | ý 7 z X Z NUL NUL | 0 | xz | application/gzip |
FD 37 7A 58 5A 00 00 | ý 7 z X Z NUL NUL | 0 | tar.xz | application/gzip |
1A 45 DF A3 | SUB E ß £ | 0 | webm | audio/webm |
3C 3f 78 6d 6C 20 | < ? x m l SPACE | 0 | xml | application/xml |
43 57 53 | C W S | 0 | swf | application/x-shockwave-flash |
46 57 53 | F W S | 0 | swf | application/x-shockwave-flash |
7B 5C 72 74 66 31 | { \ r t f 1 | 0 | rtf | application/rtf |
00 00 01 BA | NUL NUL SOH º | 0 | mpg | video/mpeg |
00 00 01 BA | NUL NUL SOH º | 0 | mpeg | video/mpeg |
47 | G | 0 | mpeg | video/mpeg |
00 00 01 B3 | NUL NUL SOH ³ | 0 | mpeg | video/mpeg |