---
name: "filetype"
section: "1"
platform: "linux"
package: "python3-filetype"
version: "1.2.0-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/filetype"
---

# filetype(1)

Infer file type and MIME type of any file/buffer.

## NAME

filetype - Infer file type and MIME type of any file/buffer.

## DESCRIPTION

Currently, the following patterns are recognised:

\- Image: bmp, cr2, dwg, gif, heic, ico, jpg, jpx, jxr, png, psd, tif, xcf, webp.

\- Video: avi, flv, m4v, mkv, mov, mp4, mpg, webm, wmv, 3gpp.

\- Audio: aac, aiff, amr, flac, m4a, mid, mp3, ogg, wav.

\- Archive: ar, br, bz2, cab, crx, dcm, deb, eot, epub, exe, gz, lz, lzo, lz4, nes, pdf, ps, rar, rpm, rtf, sqlite, swf, tar, xz, zip, Z, 7z.

\- Font: otf, ttf, woff, woff2.

\- Application: wasm.

## SYNOPSIS

usage: filetype \[-h\] \[-v\] file \[file ...\]

Determine type of FILEs.

### positional arguments:

-

  file

### optional arguments:

- **-h**, **--help**

  show this help message and exit

- **-v**, **--version**

  output version information and exit
