File Extensions Explained
A file extension is the short code after the last dot in a file name, like .pdf in report.pdf. It tells Windows, macOS, phones and apps what kind of file it is, so they know how to open it. This guide covers 105 common file types: what each one is, which apps open it, how to convert it, and how to name it well.
Extensions are often hidden. To see them, follow how to show file extensions in Windows 11. To change one safely, read how to change a file extension. Renaming the extension does not convert the file.
Image file extensions
All image formatsA .jpg or .jpeg file is a compressed photo in the JPEG format, the most widely supported image type in the world. It uses lossy compression to keep photos small, which makes it ideal for cameras, phones, email and the web, but it does not support transparency or animation.
A .png file is a Portable Network Graphics image, a lossless format that keeps every pixel exactly as saved and supports full transparency. PNG is the standard for screenshots, logos, icons and web graphics with sharp edges or text, though photos saved as PNG are much larger than JPGs.
A .gif file is a Graphics Interchange Format image, best known for short looping animations used in chats and on the web. GIFs are limited to 256 colors per frame and support simple on-off transparency, so they suit memes, reactions and simple graphics rather than photographs.
A .webp file is an image in Google's WebP format, designed to make web pages load faster. It supports both lossy and lossless compression, transparency and animation, typically producing noticeably smaller files than JPG or PNG. It is common on websites, which is why images you save from a browser often end up as .webp.
A .heic file is a photo stored in the High Efficiency Image File Format using HEVC compression. It is the default format for photos taken on iPhones and iPads, and keeps roughly the quality of a JPG at around half the file size. Macs open it natively; Windows may need extra extensions.
A .avif file is an image compressed with the AV1 video codec inside a HEIF-style container. AVIF is a royalty-free, modern web format that often makes files smaller than both JPG and WebP at similar quality, and it supports transparency, HDR, wide color and animation. Current browsers display it.
A .tiff or .tif file is a Tagged Image File Format image, a flexible, high-quality format used for scanning, printing, publishing and archiving. TIFF usually stores images losslessly, can hold multiple pages in one file, and keeps high bit depth and layers, which makes files much larger than JPGs.
A .bmp file is a Windows bitmap image that stores pixels in a simple, usually uncompressed grid. BMP is one of the oldest image formats on Windows, opens almost anywhere and preserves every pixel exactly, but files are very large compared with PNG or JPG, so it is rarely used for sharing.
A .svg file is a Scalable Vector Graphics image: a text file written in XML that describes shapes, paths and text rather than pixels. SVGs stay perfectly sharp at any size, are usually tiny, and display in every web browser, which makes them the standard format for logos, icons and web illustrations.
A .ico file is a Windows icon file that bundles several small images, usually square sizes like 16, 32, 48 and 256 pixels, into one file. Windows uses ICO files for program, folder and shortcut icons, and websites use a favicon.ico for the little icon shown in browser tabs.
A camera RAW file is the unprocessed sensor data captured by a digital camera, saved before any sharpening, color processing or JPEG compression. Each brand has its own extension, such as .CR3 (Canon), .NEF (Nikon), .ARW (Sony), .RAF (Fujifilm), .ORF (Olympus/OM System) and Adobe's open .DNG.
A .psd file is an Adobe Photoshop Document, Photoshop's native format for saving editable work. It keeps layers, masks, adjustment layers, text, smart objects and other editing data so a design can be reopened and changed later. PSD files are often large and open fully only in Photoshop or compatible editors.
A .ai file is an Adobe Illustrator artwork file, the native format for vector graphics created in Illustrator. It stores shapes, paths, text and artboards that scale to any size without losing quality, which is why logos and print designs are often delivered as AI files. Fully editing one requires Illustrator or a compatible vector editor.
A .eps file is an Encapsulated PostScript graphic, an older vector format used to exchange logos and illustrations between design and print software. An EPS contains PostScript drawing instructions and often a low-resolution preview image. It is still requested by some printers and stock image sites, but modern systems support it less and less.
A .jfif file is a JPEG image saved with the .jfif extension. JFIF (JPEG File Interchange Format) is the standard way most JPEGs are stored, so a .jfif is effectively a regular JPG. Images often get this extension when saved from a web browser on Windows. Any photo viewer opens them.
A .dng file is a raw photo in Adobe's Digital Negative format, an openly documented raw image format based on TIFF. It stores unprocessed sensor data plus metadata, giving maximum editing flexibility. Apple ProRAW, many Android phones, Leica, Pentax and Ricoh cameras save DNG, and Adobe's free DNG Converter turns other raws into it.
Video file extensions
All video formatsA .mp4 file is a video container defined by the MPEG-4 Part 14 standard. It usually holds H.264 or H.265 video with AAC audio, plus optional subtitles, chapters and metadata. MP4 is the most widely supported video format: phones, browsers, TVs, editors and social platforms all play it without extra software.
A .mov file is an Apple QuickTime movie, the video file extension iPhones, iPads and Macs use for camera recordings and screen captures. It is a container that usually holds HEVC (H.265) or H.264 video with AAC audio. MOV plays natively on Apple devices and, with the right codec, on Windows.
A .avi file is an Audio Video Interleave video, a container Microsoft introduced in the early 1990s for Windows. It interleaves audio and video streams that can use many codecs, such as DivX, Xvid, MJPEG or uncompressed video. AVI still plays on Windows, but modern formats like MP4 have largely replaced it.
A .mkv file is a Matroska video, an open, royalty-free container that can hold unlimited video, audio and subtitle tracks plus chapters and attachments in a single file. It is popular for films and TV rips because it keeps multiple languages and subtitles together. VLC plays it everywhere; Windows 11 Media Player plays most MKVs.
A .webm file is an open, royalty-free video format designed for the web. It is a restricted form of the Matroska container that holds VP8, VP9 or AV1 video with Vorbis or Opus audio. Browsers play WebM natively, and many screen recorders, GIF replacements and web downloads use it.
A .wmv file is a Windows Media Video, Microsoft's video format stored in its Advanced Systems Format (ASF) container. WMV was common in the 2000s for Windows Movie Maker projects, web streaming and downloads. Windows still plays it natively, while Macs and phones usually need VLC or a conversion to MP4.
A .m4v file is an Apple variant of the MP4 video container, used for films and TV shows from the iTunes Store and Apple TV app and for videos exported from Apple software. Unprotected M4V files play like MP4 almost anywhere; purchased ones may carry FairPlay DRM that limits them to Apple apps.
A .ts file is one of two unrelated things: an MPEG transport stream video, used for broadcast TV recordings, streaming segments and camcorders, or a TypeScript source code file used by web developers. You can tell them apart by size and content: video files are large binary data, TypeScript files are small readable text.
A .srt file is a subtitle file in the SubRip format: plain text listing numbered captions with start and end times. Video players such as VLC load it alongside a movie to show subtitles, and YouTube, Vimeo and editing apps accept SRT uploads. It is the most widely supported subtitle format.
A .vtt file is a WebVTT subtitle or caption file: plain text with timed cues that web browsers display over HTML5 video. It starts with the word WEBVTT and supports styling, positioning and chapter or description tracks. YouTube, Vimeo, Zoom and most online video platforms use or export VTT captions.
A .vob file is a video file from a DVD. It holds MPEG-2 video, audio tracks (often Dolby Digital), subtitles and menus, and lives in the VIDEO_TS folder alongside .ifo and .bup files. VLC plays VOB files directly, and HandBrake converts them to MP4.
A .m3u8 file is a UTF-8 text playlist that lists media files or stream segments. It is best known as the playlist for HLS (HTTP Live Streaming), the format most online video uses. An M3U8 contains no video itself, only links; players like VLC and Safari read it and stream the pieces.
A .3gp file is a video container defined by the 3GPP for 3G mobile phones. It stores small, low-resolution video (usually H.263 or MPEG-4) with AMR or AAC audio, designed for slow networks and limited storage. Old phone videos and MMS clips are often 3GP; VLC plays them.
Audio file extensions
All audio formatsA .mp3 file is a compressed audio file using MPEG-1 Audio Layer III, the lossy format that made digital music portable. It shrinks audio to roughly a tenth of CD size by discarding sounds the ear barely notices. MP3 plays on virtually every phone, computer, car stereo and browser.
A .wav file is a Waveform Audio file, a standard container that usually stores uncompressed PCM audio. Because nothing is thrown away, WAV keeps full recording quality, which makes it the default for studios, recorders and sound effects. The price is size: CD-quality stereo takes about 10 MB per minute.
A .flac file is audio compressed with the Free Lossless Audio Codec. It shrinks audio to about half to two-thirds of WAV size while keeping every bit of the original, so decoding gives back an exact copy. FLAC is the standard for archiving CDs and for high-resolution music downloads.
A .aac file is audio encoded with Advanced Audio Coding, the lossy codec designed to replace MP3. It sounds better than MP3 at the same bitrate and is the standard audio for YouTube, Apple Music, iPhones and most MP4 videos. A bare .aac file is a raw stream; AAC in a container is usually .m4a.
A .m4a file is an audio-only MPEG-4 file, usually containing AAC (lossy) or Apple Lossless (ALAC) audio. It is the default format for Apple Music and iTunes downloads, iPhone Voice Memos and many podcasts. M4A plays on Apple devices, Windows, Android and browsers without extra software.
A .ogg file is audio stored in the open, royalty-free Ogg container, usually encoded with Vorbis or Opus. It is common in games, Linux software, Wikipedia media, web apps and voice messages. Ogg plays in Chrome, Firefox and Android natively; Apple devices often need VLC or a conversion to MP3 or M4A.
A .aiff or .aif file is an Audio Interchange File Format file, Apple's uncompressed audio format and the Mac counterpart to WAV. It stores PCM audio at full quality, so CD-quality stereo takes about 10 MB per minute. AIFF is common in Mac music production, Logic Pro and GarageBand projects, and sample libraries.
A .mid or .midi file is a Standard MIDI File: a set of musical instructions such as which notes to play, when, how loud and on which instrument, rather than recorded sound. A synthesizer or software instrument turns it into audio, so the same file can sound very different on different devices.
A .opus file is an audio file compressed with the Opus codec, usually stored in an Ogg container. Opus is a free, open, lossy codec that sounds good at very low bitrates and handles both speech and music. WhatsApp voice notes, Discord and many web calls use it.
Document file extensions
All document formatsA .pdf file is a Portable Document Format document: a fixed-layout file that looks the same on every device, with its text, fonts, images and page geometry packed inside. It is the standard format for sharing finished documents such as invoices, contracts, forms, manuals and scanned paperwork that should not reflow.
A .docx file is a Microsoft Word document saved in the Office Open XML format used by Word 2007 and later. It stores text, formatting, images, tables, comments and tracked changes in a compressed ZIP package, and it is the default format for editable documents in Word, Google Docs exports and most office suites.
A .doc file is a word-processing document in Microsoft Word's legacy binary format, used as the default by Word 97 through Word 2003. It holds text, formatting, images and tables in a single proprietary binary file, and is still found in older archives, government forms and email attachments.
A .xlsx file is a Microsoft Excel workbook, the default Excel file extension since Excel 2007. It stores one or more worksheets of cells, formulas, charts, formatting and pivot tables in a compressed Office Open XML package. Related Excel extensions are .xlsm (macros), .xlsb (binary) and the older .xls.
A .xls file is a spreadsheet in Microsoft Excel's legacy binary format, the default for Excel 97 through Excel 2003. It stores worksheets, formulas, charts and formatting, but each sheet is limited to 65,536 rows and 256 columns. Many older systems and bank exports still produce .xls files today.
A .csv file is a plain-text table where each line is a row and commas separate the columns. It has no formatting, formulas or multiple sheets, which makes it the universal format for moving data between spreadsheets, databases, banking portals, CRMs and code. Any text editor or spreadsheet app can open it.
A .pptx file is a Microsoft PowerPoint presentation, the default PowerPoint file extension since Office 2007. It stores slides, layouts, text, images, charts, animations, embedded audio and video, and speaker notes in a compressed Office Open XML package. Older PowerPoint files use .ppt; slide shows use .ppsx.
A .txt file is a plain text file: just characters, with no fonts, bold, images or layout. It is the simplest and most portable document format, readable by every operating system and text editor, and used for notes, logs, README files, configuration and data that needs to stay readable for decades.
A .rtf file is a Rich Text Format document: text with basic formatting such as fonts, sizes, bold, italics, colours, tables and images, written as readable control codes inside a plain-text file. Created by Microsoft in 1987, it remains a lowest-common-denominator format that almost every word processor can open.
A .odt file is an OpenDocument Text document, the native word-processing format of LibreOffice Writer and Apache OpenOffice. It is an open, ISO-standardized format that stores text, formatting, images and tables in a ZIP package of XML files, and is often required by governments and organizations that prefer open standards.
A .md file is a Markdown document: plain text with lightweight formatting marks such as # for headings, **bold**, - for bullet lists and [text](url) for links. It reads naturally as text and converts cleanly to HTML, which is why Markdown is the standard file extension for README files, documentation and notes apps.
A .epub file is an e-book in the open EPUB standard, the most widely used e-book format outside Amazon. It packages HTML pages, CSS styles, images and metadata into a ZIP file so the text reflows to fit any screen size. Apple Books, Google Play Books, Kobo and Calibre all read EPUB files.
A .azw3 file is an Amazon Kindle e-book in Kindle Format 8 (KF8). It is the main Kindle file extension for books you load onto a Kindle yourself, supporting reflowable text, embedded fonts and richer layout than the old MOBI format. Kindle Store purchases may also appear as .azw or .kfx files.
A .mobi file is an e-book in the Mobipocket format, which Amazon used as the basis for early Kindle books. It holds reflowable text, simple formatting and images. Kindles still open MOBI files copied over USB, but Amazon has replaced it with AZW3, KFX and EPUB support for new books and Send to Kindle.
A .mht or .mhtml file is a single-file web page archive. It bundles a page's HTML together with its images, stylesheets and other resources into one MIME-encoded file, so the page can be opened offline exactly as it was saved. Chrome and Edge open MHT files, and Word can open them too.
A .vsdx file is a Microsoft Visio drawing, the default Visio file extension since Visio 2013. It stores diagrams such as flowcharts, network maps, floor plans and org charts as pages of connected shapes, in a compressed Office Open XML package. Older Visio files use .vsd; stencils use .vssx and templates .vstx.
A .mpp file is a Microsoft Project file: a project plan containing tasks, durations, dependencies, milestones, resources, costs and baselines, usually viewed as a Gantt chart. It is a proprietary binary format created by Microsoft Project desktop, and opening it without Project requires a third-party viewer or a free tool such as ProjectLibre.
A .pages file is a document created with Apple Pages, the free word processor for Mac, iPhone and iPad. It stores text, layout, images and tables in Apple's own format. Windows has no Pages app, but you can open and convert Pages files for free in a browser at iCloud.com.
A .numbers file is a spreadsheet created with Apple Numbers, the free spreadsheet app for Mac, iPhone and iPad. It can hold several sheets, each with multiple free-floating tables, charts and formulas. Excel cannot open it, but Numbers exports to Excel and CSV, and iCloud.com opens Numbers files on Windows.
A .key file is usually a presentation created with Apple Keynote, the free slideshow app for Mac, iPhone and iPad. It stores slides, animations, transitions and embedded media. PowerPoint cannot open it directly, but Keynote exports to PowerPoint and PDF, and iCloud.com opens Keynote files on Windows.
A .cbr file is a digital comic book: a RAR archive full of page images (usually JPG or PNG) named in reading order. Comic reader apps open it and show the pages one by one. CBR is the RAR-based sibling of CBZ, and Calibre and most comic readers support both.
A .cbz file is a digital comic book stored as a ZIP archive of page images, numbered in reading order. Comic readers display the images as pages. CBZ is the most widely supported comic archive format, read by Calibre, comic apps, e-reader software and library servers like Komga and Kavita.
A .ods file is a spreadsheet in the OpenDocument Spreadsheet format, the native format of LibreOffice Calc. It is an open international standard (ISO/IEC 26300) that stores sheets, formulas, charts and formatting. Microsoft Excel and Google Sheets can open and save ODS files, so you rarely need special software.
A .odp file is a slideshow in the OpenDocument Presentation format, the native format of LibreOffice Impress. It is part of the open OpenDocument standard (ISO/IEC 26300) and stores slides, layouts, images, animations and speaker notes. PowerPoint and Google Slides can also open ODP files.
A .xps file is a fixed-layout document in Microsoft's XML Paper Specification, a PDF-like format that preserves exact page appearance. Most XPS files are created by accident with the Microsoft XPS Document Writer printer. Windows 11 opens them with the optional XPS Viewer, which you add in Settings.
Archive file extensions
All archive formatsA .zip file is a compressed archive that bundles one or more files and folders into a single, smaller file. It uses lossless compression, so everything comes back exactly as it was when you extract it. Windows, macOS, iPhone, Android and Chromebooks all open ZIP files without installing anything.
A .rar file is a compressed archive in the proprietary RAR format created by Eugene Roshal and used by WinRAR. Like ZIP, it bundles files into one smaller package, but adds strong AES-256 encryption, recovery records and easy multi-part splitting. Windows 11 can now extract RAR files natively; creating them still needs WinRAR.
A .7z file is a compressed archive created with 7-Zip, the free and open-source archiver by Igor Pavlov. It uses LZMA or LZMA2 compression, which usually produces smaller archives than ZIP, and supports AES-256 encryption including hidden file names. Windows 11 opens and creates 7z natively; Macs need a free app.
A .tar file is a tape archive, a Unix format that bundles many files and folders into one file while preserving names, permissions and timestamps. Plain TAR does not compress; it is usually combined with gzip, bzip2 or xz to make .tar.gz, .tar.bz2 or .tar.xz files. macOS, Linux and Windows 10 and 11 include a tar tool.
A .gz file is a single file compressed with gzip, the GNU compression tool. Most often you will see .tar.gz or .tgz, which is a TAR archive of many files compressed with gzip, the standard way to distribute Linux and open-source software. macOS, Linux and Windows 11 can extract them without extra software.
A .iso file is a disc image: an exact, sector-by-sector copy of a CD, DVD or Blu-ray stored as a single file. It is named after the ISO 9660 file system standard. Operating system installers for Windows and Linux are distributed as ISOs, which you can mount, burn to disc or write to a USB drive.
Code and web file extensions
All code and web formatsA .html or .htm file is a web page written in HyperText Markup Language. It is plain text with tags that describe headings, paragraphs, links, images and forms, which a web browser renders as a formatted page. Double-clicking an HTML file opens it in your default browser; any text editor can edit it.
A .json file is a plain text data file in JavaScript Object Notation, a lightweight format of names, values, lists and nested objects. It is the standard way web APIs exchange data and a common format for app settings, exports and configuration. Any text editor opens JSON, and browsers can display it nicely.
A .xml file is a plain text data file in Extensible Markup Language, which stores information in nested, self-describing tags such as <invoice> and <total>. It is used for data exchange, configuration, sitemaps, RSS feeds and document formats. Any text editor or browser can open an XML file.
A .py file is a Python script: a plain text file of Python source code that the Python interpreter runs. It is used for automation, data analysis, web back ends, machine learning and teaching. You can open and read any .py file in a text editor, but running one requires Python to be installed.
A .ps1 file is a PowerShell script, the file extension Microsoft uses for scripts written in its PowerShell command-line language. It contains plain text commands that automate Windows and server administration tasks. Double-clicking a .ps1 opens it in Notepad rather than running it, a deliberate safety measure.
A .js file is a JavaScript source code file. Websites load JS files to add interactivity, and Node.js runs them as programs and tools on servers and computers. It is plain text you can read in any editor. Be careful: on Windows, double-clicking a .js file can run it as a script.
A .exe file is a Windows executable: a compiled program that runs when you open it. Installers, apps and games on Windows are EXE files. Because running one gives it the same access to your computer that you have, only open EXE files from sources you trust. Macs, iPhones and Android cannot run them natively.
A .yaml or .yml file is a plain-text data file in YAML, a human-friendly format that uses indentation instead of brackets to structure lists and key-value pairs. It is the standard for configuration in Docker Compose, Kubernetes, GitHub Actions, Ansible and many apps. Both extensions mean exactly the same thing.
A .sh file is a shell script: a plain-text list of commands for a Unix shell such as bash or zsh, run on Linux, macOS and Windows through WSL or Git Bash. Shell scripts automate installs, builds, backups and server tasks. They run with your permissions, so read one before running it.
3D and CAD file extensions
All 3d and cad formatsA .stl file is a 3D model that describes the surface of an object as a mesh of triangles. It is the standard format for 3D printing: slicer apps such as PrusaSlicer, Cura and Bambu Studio read STL files and turn them into printer instructions. STL stores shape only, with no color, texture or units.
A .dxf file is a CAD drawing in Autodesk's Drawing Exchange Format, designed so drawings can move between AutoCAD and other programs. It stores lines, arcs, text, layers and blocks, usually as readable text. DXF is the common language of laser cutters, CNC routers and vinyl plotters.
A .dwg file is a drawing created in AutoCAD, Autodesk's design software, and the most widely used CAD format for architecture, engineering and construction. It stores precise 2D and 3D geometry, layers, dimensions and blocks in a compact binary form. Free viewers such as DWG TrueView and Autodesk Viewer open it.
A .obj file is a 3D model in the Wavefront OBJ format, a simple text format that lists a model's vertices, faces and texture coordinates. Colors and textures live in a companion .mtl file plus image files. Almost every 3D program, game engine and 3D printing app can import OBJ.
A .fbx file is a 3D scene in Autodesk's Filmbox format that can hold models, materials, skeletons, animations, cameras and lights together. It is the standard way to move animated characters and assets between 3D apps such as Maya, 3ds Max and Blender and game engines like Unity and Unreal.
Map and GPS file extensions
All map and gps formatsA .kml file is a map data file in Keyhole Markup Language, an XML format for placemarks, paths, polygons and overlays on Google Earth and other map apps. It stores coordinates with names, descriptions and styles as plain text. Google Earth, Google My Maps and most GIS programs open KML files.
A .kmz file is a compressed Google Earth file: a ZIP archive containing a KML map file (usually named doc.kml) plus any icons, photos or overlay images it uses. It shows placemarks, routes and areas on a map. Google Earth, Google My Maps and GIS apps such as QGIS open KMZ files.
A .gpx file is a GPS data file in the GPS Exchange Format, an XML format that stores waypoints, planned routes and recorded tracks with latitude, longitude, elevation and time. Fitness apps, GPS watches, bike computers and hiking apps use it to share and import routes and activities.
Email and calendar file extensions
All email and calendar formatsA .eml file is a single email message saved as plain text in the standard internet message format. It contains the headers (sender, recipients, subject, date), the body in text or HTML, and any attachments encoded inside. Outlook, Apple Mail and Thunderbird open EML files, and any text editor can read them.
A .msg file is a single Outlook item, usually an email, saved in Microsoft Outlook's own binary format. It keeps the message body, sender, recipients, dates, attachments and Outlook-specific properties. MSG files open with Outlook for Windows; other email apps generally cannot read them without a converter.
A .ics file is a calendar file in the iCalendar standard. It contains one or more events, with title, start and end time, time zone, location, description and reminders, as plain text. Google Calendar, Outlook and Apple Calendar can import it, which is why websites offer an Add to calendar ICS download.
A .vcf file is a contact card in the vCard format. It stores a person's or company's name, phone numbers, email and postal addresses, birthday and sometimes a photo as plain text. One VCF can hold a single contact or thousands. Phones, Google Contacts, Outlook and Apple Contacts import it.
A .pst file is an Outlook data file that stores copies of emails, contacts, calendar items and tasks on your computer. People use PSTs to back up or archive a mailbox and to move mail between accounts. Classic Outlook for Windows opens and imports PST files; the new Outlook has more limited support.
System and app file extensions
All system and app formatsA .dat file is a generic data file whose contents depend entirely on the program that created it. It may be text, a video, a game save, a database or an email attachment such as winmail.dat. There is no single DAT format, so the right app depends on where the file came from.
A .tmp file is a temporary file that a program creates while it works, to hold data, a backup or a partial download. Most are deleted automatically when the program closes. Leftover TMP files are usually safe to remove, but a TMP next to a document you were editing can sometimes recover lost work.
A .bin file is a generic binary file: raw data meant for a program or device rather than for people to read. Common types are CD and DVD disc images (usually paired with a .cue file), firmware updates for routers and other hardware, and game ROMs. What opens it depends on where it came from.
A .dll file is a Dynamic Link Library: a file of compiled code and resources that Windows programs load while they run. Many programs can share one DLL, which saves memory and disk space. DLLs are not opened by double-clicking; errors about a missing DLL are fixed by reinstalling the program or runtime that provides it.
A .apk file is an Android Package: the file format used to install apps on Android phones, tablets and TVs. It is a signed ZIP archive containing the app's code, resources and manifest. Installing an APK from outside the Play Store is called sideloading and requires allowing installs from that source first.
A .jar file is a Java Archive: a ZIP-based package of compiled Java classes, resources and a manifest. Some JARs are runnable programs started with Java; others are libraries used by other Java programs. Minecraft mods, Minecraft servers and many developer tools are distributed as JAR files.
A .dmg file is an Apple disk image, the usual way Mac apps are distributed outside the App Store. Double-clicking it mounts it like a virtual drive in Finder, where you typically drag the app into the Applications folder. DMGs can be compressed and encrypted, and only Macs open them natively.
A .ini file is a plain-text configuration file that stores settings as key=value pairs grouped under [Section] headings. Windows programs, games and many cross-platform tools use INI files for options such as resolution, paths and preferences. Any text editor, including Notepad and TextEdit, can open and edit them.
A .bat file is a Windows batch script: a plain-text list of Command Prompt commands that run one after another when you double-click it. Batch files automate tasks such as copying files, launching programs or changing settings. The .cmd extension works almost the same. They run with your permissions, so only run trusted ones.
A .msi file is a Windows Installer package, a standard format for installing, repairing and removing software on Windows. Unlike a setup .exe, an MSI is a database that Windows Installer (msiexec) reads to copy files and create shortcuts and registry entries. IT departments prefer MSIs because they install silently and consistently.
A .crdownload file is an incomplete download in Google Chrome (and Chromium browsers such as Microsoft Edge). Chrome writes the file under this temporary name while it downloads, then renames it to the real file name when it finishes. If the download fails or is canceled, the CRDOWNLOAD stays behind.
A .cfg file is a configuration file that stores settings for a program, game or device, usually as plain text. There is no single CFG format: some use key=value lines like INI, others lists of commands or JSON-like blocks. Notepad, TextEdit or VS Code open them; the owning program decides what each line means.
A .log file is a plain-text record that a program writes as it runs, usually one line per event with a timestamp, a level such as INFO or ERROR, and a message. Logs help diagnose crashes and failed installs. Any text editor opens them; on a Mac, the Console app is built for reading logs.
A .lnk file is a Windows shortcut: a small file that points to another file, folder or program, shown with a small arrow on its icon. Double-clicking it opens the target. Windows hides the .lnk extension even when file extensions are shown, which attackers exploit by disguising shortcuts as documents.
Frequently Asked Questions
What is a file extension?
A file extension is the group of letters after the last dot in a file name, such as .pdf in report.pdf. It tells your computer which kind of file it is and which app should open it.
How do I see file extensions on Windows 11?
Open File Explorer, choose View > Show, and turn on File name extensions. On a Mac, open Finder > Settings > Advanced and turn on Show all filename extensions.
Can I change a file extension to convert a file?
No. Renaming photo.heic to photo.jpg changes the label, not the data inside, so the file may stop opening. To change the format, open the file and export or save it in the new format, or use a converter.
Are some file extensions dangerous?
Files that can run code, such as .exe, .bat, .ps1, .js and Office files with macros (.docm, .xlsm), can harm your computer if they come from someone you do not trust. Turn on file extensions so a file named invoice.pdf.exe cannot pass as a PDF.