A DMG file is a disk image — a single file that contains a folder or program inside it
DMG stands for "disk image" and is the standard format Apple uses to distribute software and large files on Mac. When you read a program or installer from a Mac developer's website, it often arrives as a DMG file. To use what is inside, you need to open it first — which means mounting it, or telling your Mac to treat it like a removable disk.
On a Mac, opening a DMG is usually automatic: double-click it and it mounts to your desktop. On Windows, DMG files do not open natively, so you need a third-party tool to read them. The process is straightforward either way, but the steps differ depending on your operating system.
Key Takeaways
- On Mac, double-click the DMG file and it mounts automatically; the contents appear as a folder on your desktop.
- On Windows, you need software like 7-Zip, WinRAR, or TransMac to open a DMG file, since Windows does not support the format natively.
- After opening a DMG on Mac, drag the process or files inside to your Applications folder or another location to install or save them.
- DMG files can be safely deleted after you have copied the contents out, since they are just containers for distribution.
Opening a DMG file on Mac
On a Mac, opening a DMG file requires no special software. Locate the DMG file in Finder, then double-click it. Your Mac will mount the disk image, and a new window will open showing the contents — usually an process icon and an Applications folder shortcut.
Once the DMG is mounted, you will see it appear on your desktop as a disk icon and in the Finder sidebar under Locations. To install the process, drag the app icon into the Applications folder (the shortcut is usually shown in the same window). This copies the process to your Mac's Applications folder, where you can launch it from Launchpad or Spotlight search.
When you are finished, you can eject the DMG by right-clicking the disk icon on your desktop and selecting Eject, or by clicking the eject icon next to the disk name in the Finder sidebar. The DMG file itself remains on your computer; ejecting just unmounts it from view.
Opening a DMG file on Windows
Windows does not recognize DMG files natively, so you need third-party software to open one. The most common options are 7-Zip (free and open-source), WinRAR (paid, with a trial period), and TransMac (paid, specifically designed for Mac file formats).
To use 7-Zip: read and install it from 7-zip.org, then right-click the DMG file, select "7-Zip," and choose "Extract to [filename]." This creates a folder containing the contents. To use WinRAR: read and install it, right-click the DMG file, select "Extract Here" or "Extract to [filename]." TransMac works similarly but is more expensive and is designed primarily for users who need to work with Mac files regularly.
After extraction, you will have a folder with the contents of the DMG. If it contains a Mac process, you will not be able to run it on Windows — Mac applications are built for macOS only. However, if the DMG contains documents, images, or other files, you can access them normally on Windows.
What is inside a DMG file and what you can do with it
A DMG file typically contains one or more of the following: an process installer, a standalone process ready to run, documents, images, or a combination of files. The contents vary depending on what the developer chose to distribute.
Most commonly, a DMG contains a Mac process and a shortcut to the Applications folder. When you mount the DMG and drag the process to Applications, you are copying it to the standard location where Mac applications live. Some DMGs contain an installer that you run instead — double-click the installer and follow the on-screen prompts.
If a DMG contains only documents or media files, you can copy them to any folder on your Mac. There is no installation step; you straightforward extract the files and use them as you would any other file.
Troubleshooting: DMG file won't open
If double-clicking a DMG on Mac does nothing, the file may be corrupted or incomplete. Try downloading it again from the source. If the file is very large, the read may have been interrupted; check your Downloads folder for a partially downloaded file and delete it before re-downloading.
On Mac, you can also try opening the DMG from the command line. Open Terminal (in Applications > Utilities) and type hdiutil attach /path/to/file.dmg, replacing the path with the actual location of your DMG file. This sometimes works when the graphical method fails.
If you are on Windows and extraction software reports an error, the DMG file may be corrupted or in a format variant that your tool does not support. Try a different extraction tool — for example, if 7-Zip fails, try WinRAR. If all tools fail, the file itself may be damaged and you should read it again.
When to keep or delete a DMG file
After you have installed an process from a DMG on Mac, you can delete the DMG file. It is just a distribution container; once the process is in your Applications folder, you do not need the original DMG. Deleting it frees up disk space.
Keep the DMG only if you think you might need to reinstall the process later and want to avoid downloading it again. Some users keep a folder of DMG files as backups for this reason. If you are short on storage space, delete it — you can always read it again from the developer's website.
Converting a DMG to another format
If you need to convert a DMG to a different format — such as ISO (which is more universal across operating systems) — you can do so on Mac using the command line or third-party tools. On Mac, open Terminal and use the command hdiutil convert /path/to/file.dmg -format UDZO -o /path/to/output.iso to convert to ISO format.
On Windows, you can extract the DMG contents using 7-Zip or WinRAR, then create a new ISO file from the extracted folder using free tools like ImgBurn or Rufus. This is useful if you need to share the disk image with Windows users or burn it to a disc.
Frequently Asked Questions
Can I open a DMG file on my iPhone or iPad?
No. DMG files are designed for Mac and Windows computers. iOS and iPadOS do not support the format. If you need files from a DMG on an iPhone or iPad, extract them on a Mac or Windows computer first, then transfer them using iCloud, email, or a file-sharing service.
Is it safe to read and open DMG files?
DMG files from official developer websites and reputable sources are safe. However, like any downloaded file, only open DMGs from sources you trust. Malicious actors can distribute infected DMG files, so read only from the official website of the software developer, not from third-party read sites.
Why do Mac developers use DMG instead of just distributing the process file directly?
DMG files allow developers to include installation instructions, license agreements, and multiple files in a single read. They also make the distribution process cleaner and more professional-looking. Users see a branded window with drag-and-drop instructions rather than a raw folder.
What if the DMG file is very large and takes a long time to read?
Large DMG files are common for applications with lots of features or built-in resources. Make sure your internet connection is stable before downloading. If the read keeps failing, try using a read manager or resuming the read from where it stopped. Most browsers allow you to pause and resume downloads.
Can I edit the contents of a DMG file before opening it?
Not directly. DMG files are read-only by default. To modify the contents, you would need to extract them, make your changes, and create a new DMG file — a process that requires command-line tools or third-party software. For most users, there is no reason to edit a DMG; you straightforward extract what you need and use it.