A DMG file is a disk image — a single file that contains a complete copy of a disk or folder, compressed and ready to use on a Mac

When you download software for Mac, you often get a DMG file instead of an installer. DMG stands for "disk image," and it works like a container. Inside it are the actual program files, and sometimes additional files like a license agreement or a folder shortcut. Your Mac treats a DMG file like a mounted disk drive — you open it, and its contents appear on your desktop as if you had plugged in an external hard drive.

DMG files are Mac-specific. Windows computers cannot open them without special software. If you are on a Mac and you download a DMG, your computer usually opens it automatically. If it does not, you double-click the file and macOS mounts it for you. Once mounted, you see a window with the contents inside. To install the software, you typically drag the application file into your Applications folder.

Key Takeaways

  • A DMG file is a compressed disk image that holds software, documents, or other files in a single container that Mac computers can open.
  • Double-clicking a DMG file mounts it on your desktop, making its contents visible and usable without extracting or installing anything first.
  • To install software from a DMG, you drag the application file into your Applications folder — you do not run an installer like on Windows.
  • After you finish installing, you can eject the DMG file from your desktop just like you would eject a USB drive.
  • DMG files are Mac-only; Windows users need third-party software to open them, and most Mac software downloads now use DMG format.

How to open a DMG file on your Mac

In most cases, your Mac opens a DMG file automatically when you download it. The file mounts on your desktop, and a window pops up showing what is inside. If this does not happen, locate the DMG file in your Downloads folder, right-click it, and select "Open." Your Mac will mount it immediately.

Once mounted, the DMG appears as a disk icon on your desktop and in Finder's sidebar. You can now see all the files inside. For software, you will usually see an application file (with an .app extension) and often an alias pointing to your Applications folder. Drag the application file onto the Applications folder alias, and the software installs. This is different from Windows, where you run an installer program — on Mac, you are simply copying the application file to where it belongs.

Installing software from a DMG

The installation process from a DMG is straightforward. Open the mounted DMG, find the application file (usually the largest file in the window), and drag it into the Applications folder. You can do this by dragging it directly into the Applications folder shown in the same window, or by opening Finder, navigating to Applications, and dropping it there. The copy process takes a few seconds to a few minutes depending on the software size.

Some DMG files include a license agreement or readme file. Read these before installing if you want to know what the software does or what permissions it needs. After the application finishes copying, you can eject the DMG and delete it if you want — the application is now installed and does not need the DMG file anymore. To eject the DMG, click the eject icon next to its name in Finder's sidebar, or drag the disk icon to the Trash.

Why software comes in DMG format

Developers use DMG files because they compress the software, making downloads faster and smaller. A DMG can also be encrypted or password-protected, which helps prevent tampering. The format also lets developers include multiple files — the application, documentation, license agreements, and shortcuts — all in one download. When you mount the DMG, you see everything organized in a single window, which makes installation clearer than hunting through folders.

DMG is also Mac-specific, which means developers know exactly how the file will behave on every Mac. They can design the window layout, add background images, and arrange files in a way that guides users through installation. This consistency is one reason why DMG became the standard for Mac software distribution.

Ejecting and deleting a DMG file

After you install the software, you do not need the DMG file anymore. To eject it, find the disk icon on your desktop or in Finder's sidebar, and click the eject button next to its name. You can also right-click the icon and select "Eject." The disk unmounts, and the icon disappears from your desktop.

Once ejected, you can delete the DMG file to free up space. It is safe to delete because the application is already installed in your Applications folder. If you ever need to reinstall the software, you can download the DMG again. Some people keep DMG files in case they need to reinstall, but this is optional — the file takes up disk space and serves no purpose once the software is installed.

Opening DMG files on Windows

If you have a Windows computer and someone sends you a DMG file, you cannot open it with built-in Windows tools. You have two options: use third-party software like 7-Zip, WinRAR, or DMG Extractor, which can read the DMG format and extract its contents. Alternatively, you can convert the DMG to an ISO file using online conversion tools, then open the ISO with Windows' built-in disk image tools.

However, even if you extract the files from a DMG on Windows, you will not be able to run Mac applications. The .app files inside are designed for macOS only. If you need to use Mac software, you need a Mac computer. If someone is sending you a DMG file and you use Windows, ask them to provide a Windows version of the software instead.

Damaged or corrupted DMG files

Occasionally a DMG file fails to open or mounts but shows corrupted files. This usually happens if the download was interrupted or the file was damaged in transit. If a DMG will not open, try downloading it again. Make sure the download completes fully before attempting to open the file — a partially downloaded DMG will not work.

If you downloaded the file correctly and it still will not open, try moving it to a different location on your Mac, such as your Desktop, and double-clicking it there. Sometimes a DMG in the Downloads folder has permission issues. If the file still will not mount, the download source may have a corrupted copy — check the developer's website to see if they have posted a new version or if there are known issues with that release.

Frequently Asked Questions

Can I run an application directly from a mounted DMG without installing it?

Yes, you can open applications directly from a mounted DMG without copying them to Applications. However, this is not recommended because the application may run slowly, and you will need to keep the DMG mounted every time you want to use it. Installing the application to your Applications folder is the proper way to use it.

What is the difference between a DMG and a ZIP file?

Both are compressed containers, but DMG is Mac-specific and mounts as a disk, while ZIP is universal and extracts to a folder. DMG files are typically used for software distribution on Mac, while ZIP files are used for general file sharing across all platforms. ZIP files are more compatible but do not offer the same installation experience as DMG.

Do I need to keep the DMG file after installing the software?

No. Once the application is installed in your Applications folder, the DMG file is no longer needed. You can eject and delete it to save disk space. Keep it only if you think you might need to reinstall the software later and do not want to download it again.

Why does my Mac ask for a password when I try to open a DMG?

Some DMG files are encrypted or password-protected by the developer for security reasons. If you downloaded the file from an official source, the developer should have provided the password. If you did not receive a password, contact the developer or check their website for instructions.

Can I edit files inside a mounted DMG?

You can view and copy files from a mounted DMG, but you cannot edit them directly inside the mounted image. If you need to modify files, copy them to your Mac first, edit them there, and then copy them back if needed. Most DMG files are read-only by design to prevent accidental changes to the software.