What a DMG file is and why you need to open it

A DMG file is a disk image — a single file that contains the contents of an entire disk or folder, compressed and bundled together. DMG stands for "disk image" and is the standard format Apple uses to distribute software, operating system updates, and large files on macOS. When you download an app from the internet on a Mac, it often arrives as a DMG file.

Opening a DMG file is straightforward on a Mac because the operating system recognizes it natively. On Windows, you'll need additional software because Windows doesn't understand DMG files by default. The file itself doesn't install anything — it just opens a virtual disk on your computer so you can see and use what's inside.

Key Takeaways

  • On macOS, double-clicking a DMG file automatically mounts it and shows its contents in a Finder window without any additional software.
  • On Windows, you need third-party software like 7-Zip, WinRAR, or Parallels Desktop because Windows has no built-in DMG support.
  • Mounting a DMG file creates a virtual disk on your computer — it doesn't extract files or take up much space unless you copy files out of it.
  • If a DMG file contains an app, you typically drag it to your Applications folder to install it, rather than running an installer.

Opening a DMG file on macOS

On a Mac, opening a DMG file requires only a double-click. Finder will mount the disk image automatically, and a new window will appear showing whatever is inside — usually an app icon, a folder, or both. The mounted disk appears on your desktop and in the Finder sidebar with a disk icon next to its name.

If the DMG contains an application, you'll see an app icon and often an arrow or shortcut pointing to the Applications folder. To install the app, drag the app icon into the Applications folder. This copies the app to your system. Once installed, you can eject the DMG file by right-clicking it in the Finder sidebar and selecting "Eject", or by dragging it to the Trash.

Some DMG files are read-only and cannot be modified. Others may ask for your password before mounting if they contain system-level software. This is normal — the password request is a security measure to prevent unauthorized changes to your computer.

Opening a DMG file on Windows

Windows does not recognize DMG files natively, so you'll need to install software that can read them. The most common options are 7-Zip (free and open-source), WinRAR (paid, with a trial period), or Parallels Desktop (paid, a full virtualization tool). For most users, 7-Zip is the simplest choice because it's free and handles DMG files without extra steps.

To use 7-Zip: download and install it from the 7-zip.org website, then right-click the DMG file, select "7-Zip", and choose "Extract to [filename]". This creates a folder with the contents of the DMG. If the DMG contains an app meant for macOS, that app will not run on Windows — you'll only be able to see the files inside. If the DMG contains documents, images, or other data files, you can open those normally once extracted.

If you need to run macOS software on Windows regularly, Parallels Desktop or VMware Fusion (virtualization software) will let you run macOS inside Windows, which means DMG files will work as they do on a Mac. This is more expensive and complex than 7-Zip, but it's the only way to actually run macOS applications on a Windows machine.

What happens when you mount a DMG file

Mounting a DMG file is different from extracting it. When you mount a DMG on a Mac, the operating system treats it like a removable disk — it appears on your desktop and in Finder, but the files inside are not copied to your hard drive. They exist only in the mounted image. This saves space and keeps your system clean.

If you want to keep files from a DMG permanently, you must copy them out of the mounted image to another location — usually the Applications folder for apps, or your Documents folder for other files. Once you've copied what you need, you can eject the DMG and delete the original file.

On Windows, extraction with 7-Zip creates a permanent copy of the contents in a new folder. You can then delete the original DMG file if you no longer need it.

Troubleshooting a DMG file that won't open

On macOS, if a DMG file won't open, the file may be corrupted or incomplete. Try downloading it again. If it still won't mount, check that you have enough free disk space — mounting requires a small amount of temporary space. You can also try opening the DMG file from the command line using the hdiutil command, which sometimes provides error messages that explain what went wrong.

On Windows, make sure you've installed 7-Zip or another DMG-compatible tool correctly. If 7-Zip doesn't appear in the right-click menu, reinstall it and select the option to add it to the context menu during installation. If extraction fails, the DMG file may be corrupted — try downloading it again from the source.

If a DMG file came from an untrusted source and your antivirus software is blocking it, scan the file with your antivirus tool first. If it's clean, you can usually add it to an exception list so the antivirus doesn't interfere with opening it.

When you receive a DMG file from someone else

DMG files are common for sharing large files or software between Mac users because they compress well and preserve file permissions and folder structure. If someone sends you a DMG file, the process is the same: double-click it on a Mac, or extract it with 7-Zip on Windows.

Before opening a DMG file from an unknown source, consider the context. If you weren't expecting it, didn't request it, or don't recognize the sender, be cautious. Malicious actors can hide harmful code inside DMG files. If you're unsure, ask the sender to confirm they sent it, or scan it with antivirus software before opening.

Frequently Asked Questions

Can I open a DMG file without mounting it?

On macOS, mounting is the standard way to open a DMG — it's automatic and requires no extra steps. On Windows, extraction with 7-Zip is the equivalent. You cannot use a DMG file without either mounting it (Mac) or extracting it (Windows).

Do I need to keep the DMG file after I install an app from it?

No. Once you've copied the app to your Applications folder, you can delete the DMG file. The app will continue to work. The DMG is just a delivery container — it's not needed after installation.

What if the DMG file contains a macOS app and I'm on Windows?

You can extract the contents with 7-Zip and see the files inside, but the app itself will not run on Windows. macOS apps are built for Apple's operating system. To run macOS software on Windows, you would need virtualization software like Parallels Desktop or VMware, which runs macOS inside Windows.

Is it safe to download DMG files from the internet?

DMG files from official sources — Apple, established software companies, or trusted repositories — are safe. DMG files from unknown sources carry the same risk as any downloaded file. Use antivirus software to scan files before opening them if you're unsure of the source.

Why do some DMG files ask for a password when I try to mount them?

Some DMG files are encrypted or password-protected by the creator. This is a security measure. You'll need the correct password to mount the file. If you don't have the password, contact the person or organization that sent you the file.