Web & Dev

File Extensions Reference

Common file extensions — what they are, what opens them, and typical MIME.

Documents

ExtFormatOpens with
pdfPortable Document FormatAny PDF reader
docxMicrosoft Word (OOXML)Word, LibreOffice
xlsxMicrosoft ExcelExcel, LibreOffice, Numbers
pptxPowerPointPowerPoint, Keynote
odtOpenDocument TextLibreOffice, Word
rtfRich Text FormatAlmost any editor
epubEPUB ebookKindle, Calibre, readers
mobiKindle ebookKindle

Archives

ExtFormatCompression
zipZIPDEFLATE (most common)
tarTARNone (archive only)
tar.gz / tgzgzipped targzip
tar.bz2bzipped tarbzip2 (slower, smaller)
tar.xzxz-compressed tarLZMA2 (smallest, slow)
7z7-ZipLZMA2
rarWinRARProprietary
gzgzipgzip (single file)

Code

ExtLanguage
.pyPython
.jsJavaScript
.tsTypeScript
.rsRust
.goGo
.c / .hC
.cpp / .hppC++
.javaJava
.ktKotlin
.swiftSwift
.rbRuby
.phpPHP
.csC#
.luaLua
.shBash
.ps1PowerShell
.sqlSQL
.rR
.jlJulia

Executables

ExtPlatform
.exeWindows PE executable
.msiWindows installer
.dmgmacOS disk image
.pkgmacOS installer
.debDebian/Ubuntu package
.rpmRed Hat/Fedora package
.apkAndroid app
.ipaiOS app (signed)
.appmacOS app bundle
.AppImagePortable Linux app
Was this article helpful?