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.
Copyright © File Type Detector 2025 | Privacy Policy | FAQ | Supported Formats | Built with Rust + WebAssembly | 🔒 Privacy-first - all processing happens in your browser | Contact: support@filetype-detector.online
This is a Python port from filetype Go package. Features Simple and friendly API Supports a wide range of file types Provides file extension and MIME type inference File discovery by extension or MIME type File discovery by kind (image, video, audio…) Pluggable: add new custom type matchers Fast, even processing large files
Return Values ¶ Returns the type of the file. Possible values are fifo, char, dir, block, link, file, socket and unknown. Returns false if an error occurs. filetype () will also produce an E_NOTICE message if the stat call fails or if the file type is unknown.
You can use the filetype: operator in Google Search to limit results to a specific file type or file extension. For example, filetype:rtf galway will search for RTF files and URLs ending in...
MOV – QuickTime container which enables any form of compression to be used; Sorenson codec is the most common; QTCH is the filetype for cached video and audio streams
/** @param tokenizer - The tokenizer used to read file content. @param fileType - The file type detected by standard or previous custom detectors, or undefined if no match is found. @returns The detected file type, or undefined if no match is found. */ export type Detector = { id: string ...