File Extensions Reference

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

Reference Reference Updated Apr 19, 2026
Reference

Documents

Ext Format Opens with
pdf Portable Document Format Any PDF reader
docx Microsoft Word (OOXML) Word, LibreOffice
xlsx Microsoft Excel Excel, LibreOffice, Numbers
pptx PowerPoint PowerPoint, Keynote
odt OpenDocument Text LibreOffice, Word
rtf Rich Text Format Almost any editor
epub EPUB ebook Kindle, Calibre, readers
mobi Kindle ebook Kindle

Archives

Ext Format Compression
zip ZIP DEFLATE (most common)
tar TAR None (archive only)
tar.gz / tgz gzipped tar gzip
tar.bz2 bzipped tar bzip2 (slower, smaller)
tar.xz xz-compressed tar LZMA2 (smallest, slow)
7z 7-Zip LZMA2
rar WinRAR Proprietary
gz gzip gzip (single file)

Code

Ext Language
.py Python
.js JavaScript
.ts TypeScript
.rs Rust
.go Go
.c / .h C
.cpp / .hpp C++
.java Java
.kt Kotlin
.swift Swift
.rb Ruby
.php PHP
.cs C#
.lua Lua
.sh Bash
.ps1 PowerShell
.sql SQL
.r R
.jl Julia

Executables

Ext Platform
.exe Windows PE executable
.msi Windows installer
.dmg macOS disk image
.pkg macOS installer
.deb Debian/Ubuntu package
.rpm Red Hat/Fedora package
.apk Android app
.ipa iOS app (signed)
.app macOS app bundle
.AppImage Portable Linux app