fileformer
search⌘KtranslateENexpand_moreupload_fileConvert
Converters8 file families · 44 direct conversions
What changes in a conversionarrow_forward
concepts / file types

What is Digital File?

The name says .jpg. The first bytes say what it is.

A file extension is just part of the name, and anyone can change it. Most formats start with a fixed run of bytes, a "magic number", that programs check instead. Drop any file here: nothing is uploaded, only its first bytes are read.

OR TRY A FILE MADE HERE
holiday.jpga PNG renamed to .jpg
photo.jpga real JPEG
report.docxZIP with word/ inside
book.zipan EPUB renamed .zip
logo.pngSVG text named .png
invoice.pdfPDF header
warning
holiday.jpg is actually PNGThe name says .jpg, but the bytes say PNG (.png). Some programs will open it anyway by sniffing; others trust the name and refuse, or open it in the wrong app.
name says.jpg
bytes sayPNG
MIME typeimage/png
label from your OSimage/jpeg (from name)
FIRST 32 BYTES · matched signature highlighted
89·50P4EN47G0D·0A·1A·0A·00·00·00·0D·49I48H44D52R00·00·00·F0·00·00·00·A0·08·06·00·00·00·322DB·E1·
Signature at byte 0, 8 bytes long. First 4,096 bytes read.
RENAME TEST

Same bytes, three labels: who believes the label?

One PNG made in this tab, handed to your browser three times with a different type label, as a mislabelled download or upload would be. Each result below is measured now, not described.

test
Download the same bytes under each name and open them on your computer:download
SHARED SIGNATURES

Many formats are another format in disguise

A Word file, an ebook and an Android app all start "PK", because each one is a ZIP archive with agreed file names inside. To tell them apart, a program has to look past the first bytes.

50 4B 03 04 · "PK"ZIP containers
Look for a named file inside: word/, xl/, ppt/, a "mimetype" entry first, or AndroidManifest.xml.
docx xlsx pptxOffice Open XML
odt ods odpOpenDocument
epubebook
apk jarAndroid / Java apps
pages key numbersApple iWork
…… 66 74 79 70 · "ftyp"ISO base media
Bytes 8-11 carry a "brand" code. The same box structure carries video, audio and still images.
mp4 m4visom, mp42, avc1
movqt
m4aM4A
heicheic, mif1
avifavif
52 49 46 46 · "RIFF"RIFF chunks
Bytes 8-11 name the form type, after a 4-byte size.
wavWAVE
webpWEBP
aviAVI
aniACON (animated cursor)
rmiRMID (MIDI)
D0 CF 11 E0 A1 B1 1A E1OLE compound files
A small FAT filesystem in a file; a named stream inside decides the type.
docWordDocument stream
xlsWorkbook
pptPowerPoint Document
msgOutlook message
msiWindows installer

Signatures this page checks

40 signatures, plus text sniffing for SVG, HTML, XML and JSON
formatoffsetbytesMIME typeextensions
PNG089 50 4E 47 0D 0A 1A 0Aimage/pngpng apng
JPEG0FF D8 FFimage/jpegjpg jpeg jfif
GIF047 49 46 38image/gifgif
WebP052 49 46 46 ·· ·· ·· ·· 57 45 42 50image/webpwebp
WAV052 49 46 46 ·· ·· ·· ·· 57 41 56 45audio/wavwav
AVI052 49 46 46 ·· ·· ·· ·· 41 56 49 20video/x-msvideoavi
BMP042 4Dimage/bmpbmp
TIFF (little-endian)049 49 2A 00image/tifftif tiff dng
TIFF (big-endian)04D 4D 00 2Aimage/tifftif tiff
ICO000 00 01 00image/vnd.microsoft.iconico
PDF025 50 44 46 2Dapplication/pdfpdf
ZIP050 4B 03 04application/zipzip docx xlsx pptx epub jar apk
ZIP (empty)050 4B 05 06application/zipzip
GZIP01F 8Bapplication/gzipgz tgz
7-Zip037 7A BC AF 27 1Capplication/x-7z-compressed7z
RAR 5052 61 72 21 1A 07 01 00application/vnd.rarrar
RAR 4052 61 72 21 1A 07 00application/vnd.rarrar
XZ0FD 37 7A 58 5A 00application/x-xzxz
Zstandard028 B5 2F FDapplication/zstdzst
BZIP2042 5A 68application/x-bzip2bz2
ISO base media (MP4/MOV/HEIC/AVIF)466 74 79 70see brandmp4 mov m4a heic avif 3gp
Matroska / WebM01A 45 DF A3video/x-matroskamkv webm mka
MP3 with ID3 tag049 44 33audio/mpegmp3
FLAC066 4C 61 43audio/flacflac
Ogg04F 67 67 53audio/oggogg opus oga ogv
MIDI04D 54 68 64audio/midimid midi
OLE compound (old Office)0D0 CF 11 E0 A1 B1 1A E1application/x-ole-storagedoc xls ppt msg msi
RTF07B 5C 72 74 66application/rtfrtf
WOFF077 4F 46 46font/woffwoff
WOFF2077 4F 46 32font/woff2woff2
TrueType font000 01 00 00font/ttfttf
OpenType (CFF) font04F 54 54 4Ffont/otfotf
Windows executable04D 5Aapplication/vnd.microsoft.portable-executableexe dll
ELF executable07F 45 4C 46application/x-elf(none) so
Mach-O (64-bit)0CF FA ED FEapplication/x-mach-binary(none) dylib
WebAssembly000 61 73 6Dapplication/wasmwasm
SQLite database053 51 4C 69 74 65 20 66 6F 72 6D 61 74 20 33application/vnd.sqlite3sqlite db
Photoshop038 42 50 53image/vnd.adobe.photoshoppsd
MOBI / Palm database6042 4F 4F 4B 4D 4F 42 49application/x-mobipocket-ebookmobi azw
UTF-8 text with BOM0EF BB BFtext/plaintxt csv
Sources: WHATWG MIME Sniffing Standard · IANA Media Types registry · RFC 6838 · ISO/IEC 14496-12 (ftyp) · PKWARE APPNOTE 6.3.10 · each format's own specification

Frequently Asked Questions

What determines what program opens a file?

The file extension (.jpg, .mp3, .docx) tells the OS which program to use. You can change the default program in OS settings.

What is a file extension?

The file extension is the suffix after the last dot in a filename (.jpg, .pdf, .mp3). It identifies the file format.

Why can't I open some files?

You need the right software for the file format. For example, .psd files need Photoshop or a compatible image editor.

What is the difference between a file and a folder?

A file contains actual data. A folder (directory) is a container that organizes files and other folders.

What is a file format?

A file format is the specific way data is organized inside a file. Different formats have different capabilities, compression, and compatibility.