Как определить формат файла онлайн
Перейти к содержимому

Как определить формат файла онлайн

  • автор:

Как определить формат файла онлайн

Do you have a file that has no extension or an incorrect extension?

Select your file and we will detect the file type automatically

Our online file type detector to determines the true file type based on the file contents, not the extension. For example, just because your file is named «file.doc» it doesn’t necessarily mean it’s a Word document. It could be any type of file that just has an incorrect extension.

The extension of a file can be misleading since its simply part of the name of the file. If you take an «.gif» file and rename it to «.doc» your operating system can be confused on which application should open the document.

DetectFileType allows you to upload a file and analyze the bits and bytes of it to tell you what is the true filetype of your document.

We can provide additional details about some documents such as details for image files such as jpeg and png. For example, a png file can give results like «PNG image data, 262 x 296, 8-bit/color RGBA, non-interlaced». This gives the type fo the file, the pixel sizes, color bits, and whether it is interlaced.

In additon to the file type and suggested extensions we also give the MIME Type as a convenience to those who need it for their programs.

Как определить формат файла онлайн

Have you ever found a file on your computer without an extension or has an incorrect extension? CheckFiletype.com helps you determine the true file type of any file based on the content of the file, not the extension. Simply use our online tool to upload the file and we will test it and show you the results.

CheckFileType does not require an e-mail or registration. The purpose of this site is to provide a quick tool to help you determine the file extension for an unrecognized or unknown filetype.

What is a file type? Every file has a particular format. Files are either binary or ascii. Common ascii files would be simple text or more complicated formatted text such as PDF or XML. Common binary files are images (jpeg, gif, png) or compressed files. But the file formats can be layered, such as DOCX or PPTX. These are a collection of ascii XML files in a zip archive which makes it a binary file.

In some cases such as zip files this tool may search the contents of the archive to give you the file type of each file contained in the archive.

About your privacy We store your file temporarily for processing, and after one hour it is removed permanently from our server. Your file transfer is secure using up to date encryption methods.

Detect a File Type

This online application inspects a file signature and classifies it according its content. The file description, its size and MIME type will be shown. All files processed by your computer/device. More than one hundred file types supported. If several files selected, only the first one is processed.

Supported File Types 118

  • JPEG raw or in the JFIF or Exif
  • JPEG 2000 file
  • JPEG XR (extended range), high-dynamic-range (HDR) images
  • png, Image encoded in the Portable Network Graphics format
  • Google WebP image file
  • Animated cursor
  • Canon RAW Format Version 2
  • XCF file, GIMP native
  • gif, Image file encoded in the Graphics Interchange Format (GIF87a)
  • gif, Image file encoded in the Graphics Interchange Format (GIF89a)
  • TrueType font
  • Computer icon encoded in ICO file format
  • Adobe Photoshop’s native file
  • Apple Icon Image format
  • TIFF, Tagged Image File Format, little-endian
  • TIFF, Tagged Image File Format, big-endian
  • BMP file, a bitmap format used mostly in the Windows world
  • wmf, Windows Metafile, image file
  • OpenEXR image
  • Better Portable Graphics format
  • Kodak Cineon image
  • Free Lossless Image Format
  • FreeHand 8 document
  • FreeHand 9 document
  • Encapsulated PostScript file version 3.0
  • Encapsulated PostScript file version 3.1
  • PostScript document
  • Open source portable voxel file
  • OpenType font
  • WOFF File Format 1.0
  • WOFF File Format 2.0
  • icm, ICC profile, color correction
  • swf, Adobe Flash
  • MP3 file with an ID3v2 container
  • MP3, MPEG-1 Layer 3 file without an ID3 tag or with an ID3v1 tag
  • Free Lossless Audio Codec
  • AIFF, Audio Interchange File Format
  • wav, Waveform Audio File Format
  • Ogg, an open source media container format
  • MIDI sound file
  • avi, Audio Video Interleave video format
  • mkv, mka, mks, mk3d, webm — Matroska media container, including WebM
  • asf, wma, wmv — Advanced Systems Format
  • mp4 — ISO Base Media file (MPEG-4)
  • 3rd Generation Partnership Project 3GPP and 3GPP2 multimedia files
  • Canon Magic Lantern Video file
  • MPEG Program Stream
  • MPEG-1 video and MPEG-2 video
  • ts, tsv, tsa, mpg, mpeg — MPEG Transport Stream (MPEG-2 Part 1)
  • QuickTime MOV, a video container
  • flv, Flash Video file
  • PIC (IBM Storyboard bitmap file) or PIF (Windows Program Information File) or SEA (Mac Stuffit Self-Extracting Archive) or YTR (IRIS OCR data file)
  • PDF document
  • DjVu document
  • crd, Microsoft Windows Cardfile Database Format, RRG card file. Check out CRD Reader command line app.
  • crd, Microsoft Windows Cardfile Database Format, MGC card file. Check out CRD Reader command line app.
  • Compound File Binary Format, a container format defined by Microsoft COM. It can contain the equivalent of files and directories. It is used by Windows Installer and for documents in older versions of Microsoft Office.
  • Microsoft Access MDB, Jet DB
  • AppleWorks 5 document
  • AppleWorks 6 document
  • SQLite Database
  • Adobe Shockwave file
  • Macromedia Director file
  • chm, Microsoft Windows HtmlHelp file
  • VirtualBox Virtual Hard Disk
  • Windows Virtual PC Virtual Hard Disk
  • Windows Virtual PC Windows 8 Virtual Hard Disk file
  • Windows Event Viewer XML file
  • PuTTY private key file version 2
  • PuTTY private key file version 3
  • PEM encoded X.509 certificate
  • PEM encoded X.509 Certificate Signing Request
  • PEM encoded X.509 PKCS#8 private key
  • PEM encoded X.509 PKCS#1 DSA private key
  • PEM encoded X.509 PKCS#1 RSA private key
  • ARJ compressed file
  • zip file format and formats based on it, such as EPUB, JAR, ODF, OOXML
  • lzip compressed file
  • 7-Zip File Format
  • GZIP compressed file
  • rar, Roshal ARchive compressed archive v1.50 onwards
  • rar, Roshal ARchive compressed archive v5.00 onwards
  • xz, tar.xz — XZ compressed file, LZMA2 compression
  • LZ4 compressed file
  • xar, eXtensible ARchive format
  • tar archive
  • Compressed file (often tar zip) using Lempel-Ziv-Welch algorithm
  • Compressed file (often tar zip) using LZH algorithm
  • Linux deb file
  • RedHat Package Manager (RPM) package
  • SDI, System Deployment Image, a disk image format used by Microsoft
  • Windows Update Binary Delta Compression file
  • cdi, CD-i CD image file
  • Executable and Linkable Format
  • DOS MZ executable and its descendants (including NE and PE)
  • DOS ZM executable and its descendants (rare)
  • com, executable file, CP/M 3 and higher with overlays
  • Script or data to be passed to the program following the shebang (#!)
  • Mach-O binary, 32-bit
  • Mach-O binary, 64-bit
  • Mach-O binary, reverse byte ordering scheme, 32-bit
  • Mach-O binary, reverse byte ordering scheme, 64-bit
  • Telegram Desktop File
  • Telegram Desktop Encrypted File
  • Java class file, Mach-O Fat Binary
  • Google Chrome extension or packaged app
  • Nintendo Entertainment System ROM file
  • cab, Microsoft Cabinet file
  • Lua bytecode
  • WebAssembly binary format
  • PGP file
  • cab, InstallShield CAB Archive File
  • evt, Windows Event Viewer file
  • dat, Windows Registry file
  • UTF-8 byte order mark, commonly seen in text files
  • Text file with UTF-16LE byte order mark
  • Text file with UTF-16BE byte order mark
  • HTML file
  • XML file

#Files, #File signature, #WASM, #Online

  • CRD File Reader Console App
  • Get File Type by Content
  • Mouse Events
  • IPv4 Ranges
  • Test Regular Expressions
  • Roman Numerals Converter
  • Floating-point Representation, 32/64 bit
  • Floating-point Summation
  • Speed & Distance Scale
  • Show White Spaces

FileTypeDetector

Detects file type by filename or content and generates correct mimetype.

FileTypeDetector

Files type detector based on file name extension or file content (binary content).

  1. Usage
  2. Installation
  3. Supported formats

Usage

File Type detection

  • Detection by file name: Detector::detectByFilename(. filename. ): array|boolean
  • Detection by file content or stream content: Detector::detectByContent(. filename/resource. ): array|boolean

Both functions will return an array with following elements in case of success:

  • [0] — Type of file ( Detector::AUDIO and so on)
  • [1] — Format of file ( Detector::MP3 and so on)
  • [2] — Mime type of file ( ‘audio/mpeg’ for example)

In case of failure it will return false .

$type = wapmorgan\FileTypeDetector\Detector::detectByFilename($filename); // or $type = wapmorgan\FileTypeDetector\Detector::detectByContent('file-without-extension'); // or $type = wapmorgan\FileTypeDetector\Detector::detectByContent(fopen('http://somedomain/somepath', 'r')); 

Mimetype generation

To get correct mimetype for file only there is getMimeType($file) function.

$mime = wapmorgan\FileTypeDetector\Detector::getMimeType($file); // or $mime = wapmorgan\FileTypeDetector\Detector::getMimeType(fopen('somefile', 'r')); 

Installation

Install package via composer:

composer require wapmorgan/file-type-detector 

Supported formats

Available to use types and their formats.

Application Archive Audio Database Disk_image Document Feed Font Image Presentation Scenario Spreadsheet Video
apk 7z aac accdb iso doc atom otf bmp odp reg csv 3gp
com arc amr mdb nrg docx rss ttf gif ppt ods asf
exe arj flac odb vhd html ico pptx tsv avi
xap bzip2 m3u sqlite json jpeg xls flv
cab midi markdown png xlsx m4v
dar mp3 odt psd mkv
gzip ogg pdf tiff mov
jar wav rtf mp4
lzma2 wma txt mpeg
rar xml swf
tar yaml vob
zip webm
wmv

Formats support status.

Format Extension Detection by content MimeType Signature
3gp 3gp + video/3gpp at [0]: (0x0001466747970336770)
7z 7z + application/x-7z-compressed at [0]: (0x377abcaf271c)
Aac aac + audio/x-aac at [0]: (0xfff1) / at [0]: (0xfff9)
Accdb accdb + application/x-msaccess at [0]: (0x01005374616e6461726420414345204442)
Amr amr + audio/amr at [0]: (0x2321414d52)
Apk apk + application/vnd.android.package-archive at [0]: (0x504b34) & at [30]: (‘AndroidManifest.xml’)
Arc arc + application/x-freearc at [0]: (0x4172431)
Arj arj + application/arj at [0]: (0x60ea)
Asf asf
Atom atom + application/atom+xml at [0]: (‘
Avi avi + video/x-msvideo at [0]: (0x52494646) & at [8]: (0x415649204c495354)
Bmp bmp + image/bmp at [0]: (0x424d)
Bzip2 bz2 + application/x-bzip2 at [0]: (0x425a68)
Cab cab + application/vnd.ms-cab-compressed at [0]: (0x4d534346)
Com com application/x-msdownload
Csv csv text/csv
Dar dar + application/x-dar at [0]: (0x0007b)
Doc doc + application/msword at [0]: (0xd0cf11e0a1b11ae1) & at [512]: (0xeca5c10)
Docx docx + application/vnd.openxmlformats-officedocument.wordprocessingml.document at [0]: (0x504b3414060) & at [-22]: (fuzzy search ‘word/’)
Exe exe + application/x-msdownload at [0]: (0x4d5a)
Flac flac + audio/x-flac at [0]: (0x664c614300022)
Flv flv + video/x-flv at [0]: (0x464c561)
Gif gif + image/gif at [0]: (0x474946383761) / at [0]: (0x474946383961)
Gzip gz + application/gzip at [0]: (0x1f8b)
Html html + text/html at [0]: (‘
Ico ico + image/x-icon at [0]: (0x0010)
Iso iso + application/x-iso9660-image at [0]: (0x4344303031)
Jar jar + application/java-archive at [0]: (0x504b341408080) / at [0]: (0x5f27a889)
Jpeg jpeg + image/jpeg at [0]: (0xffd8ffe0)
Json json application/json
Lzma2 xz application/x-xz
M3u m3u + audio/x-mpegurl at [0]: (‘#EXTM3U’)
M4v m4v + video/x-m4v at [0]: (0x00018667479706d703432)
Markdown md text/markdown
Mdb mdb + application/x-msaccess at [0]: (0x01005374616e64617264204a6574204442)
Midi midi + audio/midi at [0]: (0x4d546864)
Mkv mkv + video/x-matroska at [0]: (0x1a45dfa3934282886d6174726f736b61)
Mov mov + video/quicktime at [4]: (0x6674797071742020) / at [4]: (0x6d6f6f76)
Mp3 mp3 + audio/mpeg at [0]: (0x494433)
Mp4 mp4 + video/mp4 at [4]: (0x6674797069736f6d) / at [4]: (0x6674797033677035) / at [4]: (0x667479704d534e56) / at [4]: (0x667479704d344120)
Mpeg mpeg + video/mpeg at [0]: (0x001) & at [-4]: (0x001b7)
Nrg nrg + at [-8]: (‘NERO’) / at [-12]: (‘NER5’)
Odb odb + application/vnd.oasis.opendocument.database at [0]: (0x504b34) & at [30]: (‘mimetypeapplication/vnd.oasis.opendocument.’) & at [73]: (‘base’)
Odp odp + application/vnd.oasis.opendocument.presentation at [0]: (0x504b34) & at [30]: (‘mimetypeapplication/vnd.oasis.opendocument.’) & at [73]: (‘presentation’)
Ods ods + application/vnd.oasis.opendocument.spreadsheet at [0]: (0x504b34) & at [30]: (‘mimetypeapplication/vnd.oasis.opendocument.’) & at [73]: (‘spreadsheet’)
Odt odt + application/vnd.oasis.opendocument.text at [0]: (0x504b34) & at [30]: (‘mimetypeapplication/vnd.oasis.opendocument.’) & at [73]: (‘text’)
Ogg ogg + audio/ogg at [0]: (‘OggS’)
Otf otf + application/x-font-otf at [0]: (0x4f54544f)
Pdf pdf + application/pdf at [0]: (0x25504446)
Png png + image/png at [0]: (0x89504e47da1aa)
Ppt ppt + application/vnd.ms-powerpoint at [0]: (0xd0cf11e0a1b11ae1) & at [512]: (0xa0461df0) / at [0]: (0xd0cf11e0a1b11ae1) & at [512]: (0x06e1ef0) / at [0]: (0xd0cf11e0a1b11ae1) & at [512]: (0xf0e83)
Pptx pptx + application/vnd.openxmlformats-officedocument.presentationml.presentation at [0]: (0x504b3414060) & at [-22]: (fuzzy search ‘ppt/’)
Psd psd + image/vnd.adobe.photoshop at [0]: (0x38425053)
Rar rar + application/x-rar-compressed at [0]: (0x526172211a70) / at [0]: (0x526172211a710)
Reg reg + text/plain at [0]: (0xfffe) / at [0]: (0x52454745444954)
Rss rss + application/rss+xml at [0]: (‘
Rtf rtf + application/rtf at [0]: (0x7b5c72746631)
Swf swf + application/x-shockwave-flash at [0]: (0x5a5753)
Tar tar + application/x-tar at [0]: (0x757374617203030) / at [0]: (0x757374617220200)
Tiff tiff + image/tiff at [0]: (0x492049) / at [0]: (0x49492a0) / at [0]: (0x4d4d02a) / at [0]: (0x4d4d02b)
Tsv tsv text/tab-separated-values
Ttf ttf + application/x-font-ttf at [0]: (0x01000)
Txt txt text/plain
Vhd vhd
Vob vob + video/x-ms-vob at [0]: (0x001ba) & at [-4]: (0x001b9)
Wav wav audio/x-wav
Webm webm + video/webm at [0]: (0x1a45dfa3)
Wma wma audio/x-ms-wma
Wmv wmv video/x-ms-wmv
Xap xap application/x-silverlight-app
Xls xls + application/vnd.ms-excel at [0]: (0xd0cf11e0a1b11ae1) & at [512]: (0x981000650)
Xlsx xlsx + application/vnd.openxmlformats-officedocument.spreadsheetml.sheet at [0]: (0x504b3414060) & at [-22]: (fuzzy search ‘xl/’)
Xml xml + application/xml at [0]: (‘
Yaml yaml text/yaml
Zip zip + application/zip at [0]: (0x504b34) / at [0]: (0x504b56) / at [0]: (0x504b78)

FileTypeDetector maintained by wapmorgan

Добавить комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *