Reference

File extensions.

The common file extensions and what each one is — grouped by type and searchable.

Tap any row to copy the value in the first column.

Images

ExtensionFormatNotes
.jpgJPEG imageAlso .jpeg; lossy photos
.pngPNG imageLossless, supports transparency
.gifGIF image256 colours, animation
.webpWebP imageSmaller modern web format
.svgSVG vectorScalable, XML-based
.heicHEIF imageApple's iPhone photo format
.bmpBitmap imageUncompressed
.tiffTIFF imageHigh-quality, print
.icoIconFavicons and app icons

Documents

ExtensionFormatNotes
.pdfPDF documentPortable, fixed layout
.docxWord documentMicrosoft Word
.xlsxExcel spreadsheetMicrosoft Excel
.pptxPowerPointMicrosoft slides
.txtPlain textNo formatting
.rtfRich textBasic formatting
.mdMarkdownPlain-text formatting
.epubeBookReflowable e-reader format

Audio

ExtensionFormatNotes
.mp3MP3 audioLossy, universal
.wavWAV audioUncompressed
.aacAAC audioLossy, Apple default
.flacFLAC audioLossless
.oggOgg VorbisOpen, lossy
.m4aM4A audioAAC in MP4 container

Video

ExtensionFormatNotes
.mp4MP4 videoMost common
.movQuickTimeApple video
.mkvMatroskaFlexible container
.aviAVI videoOlder Windows format
.webmWebM videoOpen web format

Archives & disk images

ExtensionFormatNotes
.zipZIP archiveUniversal compression
.rarRAR archiveNeeds WinRAR/extractor
.7z7-Zip archiveHigh compression
.tarTar archiveBundles files, no compression
.gzGzipCompressed, often with tar
.tar.gzGzipped tarballCommon on Linux/macOS
.dmgmacOS disk imageMac installers
.isoDisc imageCD/DVD/USB images

Code & web

ExtensionFormatNotes
.htmlHTMLWeb pages
.cssCSSStylesheets
.jsJavaScriptWeb scripting
.tsTypeScriptTyped JavaScript
.jsonJSONData interchange
.pyPythonPython source
.shShell scriptBash/zsh
.sqlSQLDatabase queries
.ymlYAMLConfig; also .yaml

Data & system

ExtensionFormatNotes
.csvCSV dataComma-separated values
.sqliteSQLite databaseSingle-file database
.logLog filePlain-text logs
.exeWindows programExecutable
.appmacOS appApplication bundle
.apkAndroid appInstallable package
.debDebian packageLinux installer

What an extension actually does

A file extension is the bit after the last dot in a filename, and its job is to tell the operating system which app should open the file and roughly what's inside. It's a label, not a guarantee — renaming photo.png to photo.jpg doesn't convert the image, it just mislabels it, and the file may fail to open. A couple of cases trip people up: .tar.gz is really two extensions (a tar archive that's then gzip-compressed), and newer formats like .heic (iPhone photos) and .webp (web images) sometimes need conversion to open in older software. To actually convert a file you need a tool that re-encodes it, not a rename.

FAQ

Can I convert a file by changing its extension?
No. The extension only labels the format — it doesn't change the data inside. Renaming a .png to .jpg won't convert it and often makes it unopenable. Use a converter that re-encodes the file instead.
What is a .webp file?
WebP is a modern image format from Google that produces smaller files than JPEG or PNG at similar quality, with support for transparency and animation. Most current browsers and image editors handle it.

More references