.DMG

DMG File

Apple Disk Image
Ask a question
QUICK ANSWER

A DMG file is an Apple disk image - the standard container for distributing Mac applications. On a Mac, double-click it to mount the image, then drag the app to your Applications folder. On Windows, you cannot run the Mac software inside; you can only extract its contents with 7-Zip or convert it to an ISO with AnyToISO.

Developer: Apple Category: Disk Image Files MIME: application/x-apple-diskimage
OPENS ON Windows macOS Linux
Related: .BIN · .ISO · .MDF · .NRG

On this page

19k+ extensions indexed
Last reviewed Aug 18, 2026

Not sure what your file is?

Drop any file into our identifier - we read just the first bytes to name the format.

Identify a file

What is the DMG file format?

Files with the .dmg extension are disk images used in macOS systems. These files are most commonly encountered as installers for software downloaded from the internet. They are opened with Apple's Disk Utility application, which mounts them as volumes - after mounting, the image appears in the Finder file manager as a new volume, just like a physical drive. Internally, .dmg uses Apple's UDIF (Universal Disk Image Format), with optional zlib or bzip2 compression and optional AES-128 or AES-256 encryption.

.dmg images may comprise different types of file systems, including HFS+, APFS, and FAT32. It is also possible to create hybrid images containing multiple file systems. Images can optionally be password-protected, making them a common distribution vehicle for software requiring controlled access. Using Disk Utility, an image can also serve as a source for burning CDs or DVDs.

In some situations, .dmg files contain installation software necessary for installation of the programs within them - they do not require any additional tools, as the installer runs directly from the mounted volume.

In macOS, .dmg files replaced the .IMG format used in the earlier Mac OS Classic system. Although .dmg files are designed for macOS, there are tools that allow converting them into formats supported by Windows, such as .ISO. However, not every .dmg image can be properly converted to a Windows-compatible format - furthermore, there is no guarantee the image will work correctly on that platform.

Apple also offers related sparse image formats: .sparseimage (a growable single-file container) and .sparsebundle (a directory-based variant used by Time Machine for backups).

Security & safety

RISK: MEDIUM

A DMG is a container, so the risk comes from what's inside, not the format. On macOS, only mount DMGs from trusted sources: a malicious DMG can carry trojaned apps or fake installers, and macOS Gatekeeper/notarization checks help but aren't foolproof - prefer apps from the Mac App Store or the developer's official site, and be suspicious of DMGs that tell you to drag an app onto 'Terminal' or run a script. On Windows the Mac app can't execute, so an extracted DMG is low-risk to inspect, but don't assume a DMG downloaded from a random link is the genuine software. Verify checksums/signatures when the developer provides them.

Format details

in a nutshell
FULL NAMEApple Disk Image
DEVELOPERApplesince 2000s (UDIF disk image, the .dmg format used since Mac OS X)
MIME TYPEapplication/x-apple-diskimage
TYPEmacOS disk image (mountable volume container, often compressed/encrypted; UDIF format)
MAGIC BYTES · FILE SIGNATURE
OFFSET
fffffffffffffe00fffffffffffffe01fffffffffffffe02fffffffffffffe03
HEX
6B6F6C79
ASCII
koly
A modern .dmg (UDIF) has NO fixed signature at offset 0 - the bytes there vary with the internal filesystem/compression. Instead the format is identified by a 512-byte "koly" trailer at the END of the file: the ASCII string "koly" (hex 6B 6F 6C 79) begins the trailer block, located 512 bytes before EOF. Some older or encrypted DMGs differ (e.g. an "encrcdsa" header for AES-encrypted images). Tools detect DMG by reading that trailing koly block.

Programs that open DMG files

Windows4 apps
7-Zip Open-source Right-click > 7-Zip > Open archive to browse and EXTRACT the DMG's files. Note: this only lets you inspect contents - it will NOT install or run the Mac app on Windows.
PeaZip Open-source Open the .dmg to extract its contents for inspection. Same limitation: no Mac app can run on Windows.
AnyToISO Freemium Convert the .dmg to a standard .iso, or extract files. Useful when a Windows tool needs an ISO instead of a DMG.
7z2hashcat / dmg2img (utilities) Open-source dmg2img converts a .dmg to a raw/ISO image from the command line - for advanced users needing a mountable image on Windows/Linux.
macOS2 apps
Finder / DiskImageMounter Built-in Double-click the .dmg to mount it, then drag the app onto the Applications folder shown in the window. Eject the image when done. No extra software needed.
Disk Utility Built-in Open the .dmg to verify, convert, or restore it; use for creating/editing disk images too.
Linux3 apps
HFSExplorer Open-source Java tool that reads HFS+ images; open the DMG to browse and extract its files (older HFS+ DMGs only, not APFS).
7-Zip / p7zip Open-source 7z x file.dmg extracts the contents for inspection (a Mac .app still won't run on Linux).
dmg2img Open-source Convert the .dmg to an .img/ISO you can mount: dmg2img file.dmg, then mount the result.

Technical details

deep spec
Container formatUDIF (Universal Disk Image Format), Apple's proprietary disk image standard
DeveloperApple Inc.
MIME typeapplication/x-apple-diskimage
File identification512-byte "koly" trailer block at end of file (offset −512 from EOF); no fixed signature at byte offset 0
Compression methodsNone (uncompressed), zlib (UDZO), bzip2 (UDBZ); LZFSE supported in newer macOS versions
EncryptionOptional AES-128 or AES-256 password protection; encrypted images use an "encrcdsa" header
Supported file systemsHFS+, APFS, FAT32, exFAT, ISO 9660; hybrid multi-filesystem images are supported
Image subtypesRead/write (UDRW), read-only (UDRO), compressed (UDZO), DVD/CD master (UDTO), sparse (UDSP)
Sector addressing64-bit sector numbers; image size is limited by the host file system, not the UDIF format itself
Mount behaviorMounts as a virtual volume under /Volumes/ on macOS and appears as a removable drive in Finder
Internet-enabled modeOptional flag that causes macOS to auto-unpack the image contents and discard the .dmg file after first mount
Embedded SLACan contain a Software License Agreement displayed to the user before the image is mounted
Segment supportLarge images can be split into numbered multi-part segments using the .dmgpart extension
Partition table supportCan embed a full GPT or Apple Partition Map (APM) with multiple partitions
Cross-platform accessExtractable on Linux and Windows using dmg2img, 7-Zip/p7zip, and HFSExplorer (read-only)
Released2000s (UDIF disk image, the .dmg format used since Mac OS X)
Specificationnewosxbook.com

DMG conversions

Community Q&A

asked by users
Ask a quick question
Get help from people who work with DMG files. Be specific - include your system and software version.
No account needed · answers usually within a day

No questions yet - be the first to ask about DMG files.

Frequently asked questions

How do I open a DMG file on Windows?
You can't run the Mac app inside it on Windows - DMG is a macOS format. You can only EXTRACT its files to look inside, using 7-Zip or PeaZip, or convert the DMG to an ISO with AnyToISO. To actually use the software, download its Windows version.
How do I open a DMG file on a Mac?
Double-click it. macOS mounts the image and opens a window - drag the app onto the Applications folder shown there to install it, then eject the mounted image. That's the whole process.
Can I install a Mac app from a DMG on Windows?
No. The application inside is built for macOS and won't install or run on Windows, even after extraction. Look for the program's official Windows installer instead, or run it on actual Mac hardware/macOS.
How do I convert a DMG to an ISO?
Use AnyToISO (simple GUI) or the free dmg2img command-line tool. This gives you a standard ISO you can mount on any OS - but remember a Mac app inside the image still only runs on macOS.
Why won't my DMG open on my Mac ('image not recognized')?
Usually the download is incomplete or corrupt - re-download it. It can also be a damaged or non-standard image; try opening it in Disk Utility or verifying its checksum against the developer's published value.
Is a DMG file safe to open?
The format itself is harmless; the danger is a malicious app inside. On Mac, mount DMGs only from the App Store or official developer sites and never run a DMG that asks you to drag an app onto Terminal. On Windows, extracting one to inspect it is low-risk since the Mac app can't run.

References

1Apple Support - Open a disk image (.dmg) on Macsupport.apple.com
2The Apple File System / DMG (UDIF koly trailer) technical writeupnewosxbook.com

Keep exploring

across the database

Top extensions this week

1.AQQAQQ Instant Messenger File
2.CRDOWNLOADChrome Partial Download File
3.MDMarkdown Document
4.BINCD/DVD Disc Image (BIN/CUE)
5.NOMEDIAAndroid No-Media Marker File
6.PARTPartial Download File
7.RPMSGRestricted Permission Message
8.EXEWindows Executable (Portable Executable)
9.DBSQLite Database File
10.AVIFAV1 Image File Format (AVIF)

Related extensions

.BINCD/DVD Disc Image (BIN/CUE)
.ISOISO disc image (ISO 9660 / UDF)
.MDFMedia Descriptor File (Alcohol 120% / DAEMON Tools disc image)
.NRGNero Burning ROM Disc Image
.TIBAcronis True Image Backup
.OVAOpen Virtualization Format Archive

Free file tools

An in-browser file identifier and image converter - everything runs on your device.

Open the toolbox

Browse file extensions A-Z