Skip to content
GivenTool

File extensions and MIME types

Data last checked 2026-09-20

An extension is the part after the last dot in a file name; it tells the operating system which program to use. The MIME type (media type) is the equivalent label on the web, sent in the Content-Type header and checked by upload forms. The two do not always agree: a portal may refuse a .jpg whose bytes are actually HEIC, and a .ts can be a TypeScript file or a video stream segment. GivenTool checks both the extension and the file's magic bytes for that reason.

The table below covers 120 extensions you are likely to meet in images, video, audio, documents, data, archives, code, fonts and design. MIME types are the IANA-registered ones where a registration exists; where a format has no registration the de-facto type is given and marked. Rows whose format GivenTool can convert or compress link straight to the tool.

Type part of an extension, a format name or a program into the filter to narrow the list.

Extensions, types and MIME types

120 rows

ExtensionTypeMIME typeOpens withNotesGivenTool tool
.jpg / .jpegImageimage/jpegAny browser, Photos, PreviewLossy photo format accepted by every upload form. No transparency.Compress JPG
.pngImageimage/pngAny browser, Photos, PreviewLossless with transparency; large for photos, ideal for screenshots and logos.PNG to JPG
.webpImageimage/webpAll modern browsersGoogle format, 25-35% smaller than JPEG; rejected by many government portals.WebP to JPG
.heic / .heifImageimage/heic, image/heifiPhone, macOS, Windows with codecApple's default camera format (HEVC-compressed). Convert to JPG for uploads.HEIC to JPG
.gifImageimage/gifAny browser256 colours, optional animation. Poor for photos.Convert GIF
.bmpImageimage/bmpWindows Paint, most viewersUncompressed Windows bitmap; very large files.Compress image
.tif / .tiffImageimage/tiffPhotoshop, Preview, scannersLossless, multi-page capable; used by scanners and print. Not shown by most browsers.
.avifImageimage/avifChrome, Firefox, Safari 16+AV1-based image format, smaller than WebP; limited support outside browsers.Convert AVIF
.svgImage (vector)image/svg+xmlAny browser, Illustrator, InkscapeXML vector graphics; scales without loss. Can contain scripts, so some uploads reject it.
.icoImageimage/vnd.microsoft.iconBrowsers (favicons), WindowsIcon container with several sizes.
.psdImage (layered)image/vnd.adobe.photoshopAdobe Photoshop, Affinity, GIMPPhotoshop working file with layers; export to PNG or JPG to share.
.raw / .cr2 / .nef / .arw / .dngImage (camera raw)image/x-canon-cr2, image/x-nikon-nef, image/x-adobe-dngLightroom, Capture One, camera softwareUnprocessed sensor data; DNG is Adobe's open container. Convert to JPG before sharing.
.mp4Videovideo/mp4EverythingMPEG-4 container, usually H.264 video + AAC audio. The safe choice for uploads.Compress MP4
.movVideovideo/quicktimeQuickTime, iPhone, VLCApple QuickTime container; often H.264 or HEVC. Convert to MP4 for Windows and web.MOV to MP4
.m4vVideovideo/x-m4vApple devices, VLCMP4 variant used by iTunes; may carry DRM.Convert to MP4
.webmVideovideo/webmChrome, Firefox, Edge, VLCOpen web container (VP8/VP9/AV1 + Opus/Vorbis). Weak Safari and iOS support.Convert WebM
.mkvVideovideo/x-matroskaVLC, MPV, PlexMatroska container holding almost any codec and multiple subtitle tracks; not accepted by most upload forms.Convert to MP4
.aviVideovideo/x-msvideoWindows Media Player, VLC1992 Microsoft container; large files, old codecs.Convert to MP4
.wmvVideovideo/x-ms-wmvWindows Media Player, VLCWindows Media Video; poor support on Apple and web.
.flvVideovideo/x-flvVLCFlash Video; obsolete since Flash ended in 2020.
.3gpVideovideo/3gppOlder phones, VLCLow-resolution mobile video from feature phones.Convert to MP4
.mts / .m2tsVideovideo/mp2tCamcorder software, VLCAVCHD camcorder recordings (H.264 in MPEG-TS).
.tsVideovideo/mp2tVLC, streaming playersMPEG transport stream segment used by HLS streaming. Also a TypeScript source file extension.
.mp3Audioaudio/mpegEverythingUniversal lossy audio; 128 to 320 kbps.Convert to MP3
.m4aAudioaudio/mp4Apple devices, most playersAAC (or ALAC lossless) in an MP4 container; iPhone Voice Memos.M4A to MP3
.aacAudioaudio/aacMost playersRaw AAC stream; better than MP3 at the same bitrate.Convert to MP3
.opusAudioaudio/opusBrowsers, VLC, WhatsAppWhatsApp and Telegram voice notes; excellent quality at low bitrates.OPUS to MP3
.ogg / .ogaAudioaudio/oggBrowsers, VLCOgg container with Vorbis or Opus audio.Convert to MP3
.wavAudioaudio/wavEverythingUncompressed PCM; about 10 MB per minute at CD quality.WAV to MP3
.flacAudioaudio/flacVLC, foobar2000, most phonesLossless compression, about half the size of WAV.FLAC to MP3
.wmaAudioaudio/x-ms-wmaWindows Media PlayerWindows Media Audio; poor support elsewhere.Convert to MP3
.amrAudioaudio/amrOlder phones, VLCAdaptive Multi-Rate speech codec from older phone recorders.Convert to MP3
.aiff / .aifAudioaudio/aiffmacOS, Logic, most playersApple's uncompressed audio, equivalent to WAV.
.mid / .midiAudio (notation)audio/midiMusic softwareInstrument instructions, not recorded sound.
.pdfDocumentapplication/pdfAny browser, Acrobat, PreviewFixed-layout document; the standard for forms, scans and official uploads.
.docDocumentapplication/mswordWord, LibreOffice, Google DocsLegacy Word binary format (1997-2003).
.docxDocumentapplication/vnd.openxmlformats-officedocument.wordprocessingml.documentWord, LibreOffice, Google DocsWord document (Office Open XML, a ZIP of XML files).
.xlsSpreadsheetapplication/vnd.ms-excelExcel, LibreOffice, Google SheetsLegacy Excel binary format.
.xlsxSpreadsheetapplication/vnd.openxmlformats-officedocument.spreadsheetml.sheetExcel, LibreOffice, Google SheetsExcel workbook (Office Open XML).
.pptPresentationapplication/vnd.ms-powerpointPowerPoint, LibreOfficeLegacy PowerPoint binary format.
.pptxPresentationapplication/vnd.openxmlformats-officedocument.presentationml.presentationPowerPoint, LibreOffice, Google SlidesPowerPoint presentation (Office Open XML).
.odt / .ods / .odpDocumentapplication/vnd.oasis.opendocument.text (spreadsheet, presentation)LibreOffice, OpenOffice, WordOpenDocument formats, ISO 26300.
.rtfDocumentapplication/rtfWord, TextEdit, WordPadRich Text Format; simple formatting, wide compatibility.
.txtTexttext/plainAny text editorPlain text with no formatting.
.mdTexttext/markdownText editors, GitHub, ObsidianMarkdown: plain text with lightweight formatting marks.
.epubE-bookapplication/epub+zipApple Books, Kobo, CalibreReflowable e-book (ZIP of XHTML).
.mobi / .azw3E-bookapplication/x-mobipocket-ebook, application/vnd.amazon.ebookKindle, CalibreAmazon Kindle formats; MOBI is deprecated in favour of AZW3 and KFX.
.pages / .numbers / .keyDocumentapplication/vnd.apple.pages (numbers, keynote)Apple Pages, Numbers, KeynoteApple iWork packages; export to PDF or Office formats for Windows users.
.texText (typesetting)application/x-texLaTeX editorsLaTeX source for scientific documents.
.csvDatatext/csvExcel, Sheets, any text editorComma-separated values; one table, no formatting or types.JSON to CSV
.tsvDatatext/tab-separated-valuesExcel, Sheets, text editorsTab-separated values; safer than CSV when fields contain commas.
.jsonDataapplication/jsonText editors, browsersJavaScript Object Notation; the standard API data format.Format JSON
.xmlDataapplication/xml, text/xmlText editors, browsersExtensible Markup Language; verbose but supports schemas and namespaces.
.yaml / .ymlDataapplication/yamlText editorsHuman-readable configuration format (Docker Compose, GitHub Actions, Kubernetes).
.tomlDataapplication/tomlText editorsConfiguration format used by Rust (Cargo) and Python (pyproject).
.ini / .cfgDatatext/plainText editorsSimple key=value configuration files with [sections].
.sqlDataapplication/sqlDatabase tools, text editorsSQL statements or a database dump.
.db / .sqliteDatabaseapplication/vnd.sqlite3SQLite tools, DB BrowserSQLite database file used by apps and phones.
.parquetDataapplication/vnd.apache.parquetpandas, Spark, DuckDBColumnar analytics format; not human-readable.
.icsData (calendar)text/calendarCalendar appsiCalendar event or calendar export.
.vcfData (contacts)text/vcardContacts appsvCard contact export.
.gpx / .kmlData (geo)application/gpx+xml, application/vnd.google-earth.kml+xmlMaps, Garmin, Google EarthGPS tracks and map overlays (both XML).
.zipArchiveapplication/zipWindows, macOS, every OSUniversal archive; many portals reject compressed uploads, so extract first.
.rarArchiveapplication/vnd.rarWinRAR, 7-Zip, The UnarchiverProprietary archive; needs a third-party extractor on most systems.
.7zArchiveapplication/x-7z-compressed7-Zip, KekaHigh-compression open archive format.
.tarArchiveapplication/x-tarLinux, macOS, 7-ZipBundles files without compression; usually paired with gzip.
.gz / .tgz / .tar.gzArchiveapplication/gzipLinux, macOS, 7-ZipGzip-compressed file or tarball; standard on Unix.
.bz2 / .xzArchiveapplication/x-bzip2, application/x-xzLinux, macOS, 7-ZipHigher-ratio compressors used for source distributions.
.isoDisk imageapplication/x-iso9660-imageMounts in Windows and macOSOptical disc image; used for OS installers.
.dmgDisk imageapplication/x-apple-diskimagemacOSmacOS installer disk image.
.exeExecutableapplication/vnd.microsoft.portable-executableWindowsWindows program; blocked by most email systems.
.msiInstallerapplication/x-msiWindows InstallerWindows installer package.
.apkApp packageapplication/vnd.android.package-archiveAndroidAndroid app package (a ZIP).
.ipaApp packageapplication/octet-streamiOS (via App Store / TestFlight)iOS app archive; cannot be sideloaded without signing.
.appApplicationapplication/octet-streammacOSmacOS application bundle (a folder).
.deb / .rpmPackageapplication/vnd.debian.binary-package, application/x-rpmDebian/Ubuntu, Fedora/RHELLinux software packages.
.jarJava archiveapplication/java-archiveJava runtimeJava application or library (a ZIP).
.dll / .so / .dylibLibraryapplication/octet-streamOperating systemShared libraries for Windows, Linux and macOS.
.bat / .cmd / .shScripttext/plain, application/x-shCommand prompt, shellWindows batch and Unix shell scripts.
.ps1Scripttext/plainPowerShellPowerShell script.
.pySource codetext/x-pythonPython, any editorPython source.
.js / .mjsSource codetext/javascriptBrowsers, Node.js, any editorJavaScript source (IANA recommends text/javascript).
.jsx / .tsxSource codetext/jsx, text/tsx (de facto)Code editors, bundlersReact components in JavaScript or TypeScript.
.html / .htmWeb pagetext/htmlAny browserWeb page markup.
.cssStylesheettext/cssBrowsers, editorsCascading style sheets.
.java / .ktSource codetext/x-java-source, text/x-kotlinIDEsJava and Kotlin source.
.c / .cpp / .hSource codetext/x-cIDEs, compilersC and C++ source and headers.
.csSource codetext/plainVisual Studio, RiderC# source.
.go / .rs / .rb / .php / .swiftSource codetext/plain (language-specific de facto types)IDEs, compilersGo, Rust, Ruby, PHP and Swift source files.
.wasmBinaryapplication/wasmBrowsers, runtimesWebAssembly module; must be served with this MIME type for streaming compilation.
.ttfFontfont/ttfEvery OSTrueType font.
.otfFontfont/otfEvery OSOpenType font (TrueType or CFF outlines).
.woff / .woff2Fontfont/woff, font/woff2BrowsersCompressed web fonts; WOFF2 is about 30% smaller.
.aiDesign (vector)application/postscriptAdobe IllustratorIllustrator file; export SVG or PDF for others.
.epsDesign (vector)application/postscriptIllustrator, Inkscape, printersEncapsulated PostScript, common in print workflows.
.inddDesign (layout)application/x-indesignAdobe InDesignInDesign layout file.
.figDesignapplication/octet-streamFigmaFigma design export.
.sketchDesignapplication/octet-streamSketch (macOS)Sketch document (a ZIP of JSON).
.xdDesignapplication/vnd.adobe.xdAdobe XDAdobe XD prototype file.
.dwg / .dxfCADimage/vnd.dwg, image/vnd.dxfAutoCAD, FreeCADAutoCAD native drawing and its exchange format.
.stl / .obj3D modelmodel/stl, model/objSlicers, Blender3D printing meshes and general 3D geometry.
.glb / .gltf3D modelmodel/gltf-binary, model/gltf+jsonBrowsers (three.js), BlenderWeb-friendly 3D scene format.
.blend3D sceneapplication/x-blenderBlenderBlender project file.
.srtSubtitlesapplication/x-subripVLC, video editors, YouTubeSubRip plain-text subtitles with timestamps.
.vttSubtitlestext/vttBrowsers (HTML5 video)WebVTT subtitles for web video.
.ass / .ssaSubtitlestext/x-ssaVLC, AegisubStyled subtitles (Advanced SubStation Alpha).
.torrentMetadataapplication/x-bittorrentBitTorrent clientsDescribes files to download over BitTorrent.
.logTexttext/plainAny text editorApplication or server log.
.eml / .msgEmailmessage/rfc822, application/vnd.ms-outlookMail clients, OutlookSaved email messages.
.pst / .ostEmail storeapplication/vnd.ms-outlookMicrosoft OutlookOutlook mailbox files.
.bakBackupapplication/octet-streamDepends on the original programGeneric backup copy; rename to the original extension to open.
.tmpTemporaryapplication/octet-streamUsually nothingTemporary file left by a program; safe to delete when the program is closed.
.crdownload / .partPartial downloadapplication/octet-streamNothing until completeIncomplete browser download (Chrome, Firefox).
.lnkShortcutapplication/x-ms-shortcutWindowsWindows shortcut, not the file itself.
.url / .weblocShortcuttext/uri-listWindows, macOSSaved web link.
.p12 / .pfxCertificateapplication/x-pkcs12OS keychain, browsersCertificate plus private key bundle, password protected.
.pem / .crt / .cerCertificateapplication/x-pem-file, application/x-x509-ca-certOS keychain, OpenSSLX.509 certificates and keys in text (PEM) or binary (DER) form.
.ovpnConfigapplication/x-openvpn-profileOpenVPN clientsOpenVPN connection profile.
.qif / .ofxData (finance)application/x-ofxAccounting softwareBank statement exports.
.datGeneric dataapplication/octet-streamDepends on the programCatch-all extension; the content decides what opens it.

Sources

Frequently asked questions

Can I change a file's format by renaming the extension?

No. Renaming photo.heic to photo.jpg does not change the bytes inside; the file is still HEIC and a strict upload form will reject it (GivenTool reports "contents do not match extension"). Use a converter that re-encodes the data.

Why does the portal say "unsupported media type" for my photo?

The server checks the Content-Type or the file signature and only accepts certain formats, usually JPEG and PNG. iPhone HEIC and WebP downloads are the usual culprits; convert them to JPG first.

What is the difference between .jpg and .jpeg?

Nothing. Both are JPEG images; .jpg dates from Windows systems that allowed only three-letter extensions. Every program accepts both.

Which extensions are dangerous to open from email?

Executables and scripts: .exe, .msi, .bat, .cmd, .ps1, .js, .jar, .scr and .vbs, plus Office files with macros (.docm, .xlsm). Most mail providers block the first group outright.

Why do some files show no extension?

Windows hides known extensions by default (File Explorer, View, File name extensions), and macOS hides them per file. The extension is still there; the OS just does not display it.