What HDI files are and why you have one
An HDI file is a disk image — a single file that contains the contents of an entire disk or folder, compressed and bundled together. HDI is Apple's format, so you'll encounter these files when downloading Mac software, system updates, or archived backups. When you open an HDI file on a Mac, the system mounts it as if you'd plugged in an external drive, and you can see and use everything inside.
The file itself is inert — it won't do anything until you open it. Your Mac has the built-in tools to do this without downloading extra software.
Key Takeaways
- Double-clicking an HDI file on your Mac automatically mounts it and shows its contents in Finder, with no additional software needed.
- A mounted HDI file appears as a disk icon on your desktop and in the Finder sidebar, and you can drag files from it just like any external drive.
- If double-clicking does not work, right-click the file and select "Open With" and choose Disk Utility from the list.
- After you finish using the mounted disk, eject it by dragging its icon to the Trash or by right-clicking and selecting "Eject".
- If the file is corrupted or won't mount, Disk Utility can verify and repair it before attempting to open it again.
The fastest way: double-click the HDI file
Locate the HDI file in Finder. It will have a name ending in .hdi — for example, SoftwareName.hdi or Backup.hdi. Double-click it once.
Your Mac will mount the disk image. Within a few seconds, a new disk icon will appear on your desktop and in the Finder sidebar on the left. The mounted disk behaves exactly like an external hard drive — you can open files from it, copy files to it, or drag files from it to your computer. The original HDI file remains unchanged; the mounted disk is just a temporary view into its contents.
This is the only step most of the time. If nothing happens when you double-click, move to the next section.
If double-clicking does not work
Right-click the HDI file and select Open With from the menu that appears. A submenu will show available programs. Look for Disk Utility — it is Apple's built-in tool for managing disk images and should be in the list.
Click Disk Utility. The program will open and attempt to mount the HDI file. If it succeeds, the mounted disk will appear on your desktop and in Finder, and you can use it normally. If Disk Utility shows an error message, the file may be corrupted or incomplete — see the section below on repairing damaged files.
If Disk Utility does not appear in the "Open With" menu, you can find it manually. Open Finder, click Applications in the sidebar, then double-click the Utilities folder. Drag the HDI file onto the Disk Utility icon, or open Disk Utility first, go to File > Open, and navigate to the HDI file.
Working with a mounted HDI disk
Once the disk is mounted, it works like any other drive. You can open files directly from it, copy files to your Mac by dragging them to your desktop or Documents folder, or install software by running installers inside the disk. The mounted disk appears with a disk icon on your desktop and in the Finder sidebar.
You can also eject the disk when you are finished. Drag the disk icon to the Trash, or right-click it and select Eject. Ejecting does not delete the original HDI file — it just closes the temporary view. The HDI file remains in whatever folder you downloaded it to, and you can mount it again later by double-clicking it.
Repairing a corrupted or damaged HDI file
If the HDI file will not mount, or Disk Utility shows an error when you try to open it, the file may be corrupted. Open Disk Utility (Applications > Utilities > Disk Utility). Click File in the menu bar and select Open Disk Image. Navigate to the HDI file and click Open.
If Disk Utility detects damage, it will offer to repair it. Click Repair and wait for the process to finish. Once repair is complete, try mounting the disk again by double-clicking the HDI file. If the repair fails, the file may be too corrupted to recover — you may need to download it again from the source.
If you downloaded the HDI file from the internet and it is incomplete, re-downloading it often solves the problem. Interrupted downloads can leave a file that looks complete but is actually missing data.
Converting an HDI file to a different format
If you need to convert the HDI file to a different disk image format — such as DMG, which is more common for distribution — open Disk Utility and go to File > Open Disk Image. Select the HDI file. Once it mounts, click the mounted disk in the Disk Utility window to select it.
Go to File > Save As (or Convert in newer macOS versions). Choose your desired format from the dropdown menu — DMG is the standard choice. Give the new file a name and click Save. Disk Utility will create a new file in the format you selected, leaving the original HDI file untouched.
Frequently Asked Questions
Can I open an HDI file on Windows?
Not directly with built-in Windows tools. You would need third-party software like 7-Zip, WinRAR, or specialized disk image software. The easiest option is to convert the HDI file to DMG format on a Mac first, then use Windows software that supports DMG files, or extract the contents on the Mac and transfer them to Windows as regular files.
What is the difference between HDI and DMG files?
Both are Mac disk image formats and work the same way — double-click to mount them. DMG is newer and more widely used for software distribution. HDI is an older format you may encounter in archived files or legacy software. Your Mac treats them identically.
Does mounting an HDI file use up disk space?
No. Mounting a disk image does not copy its contents to your hard drive. It creates a temporary view into the compressed file. The only space used is the size of the original HDI file itself. If you want to keep the files permanently, you must copy them from the mounted disk to your Mac.
Why does the mounted disk disappear when I restart my Mac?
Mounted disk images are temporary — they exist only while the file is open. Restarting your Mac automatically ejects all mounted disks. The original HDI file is unaffected and remains in the folder where you saved it. Double-click it again to mount it after restart.
Can I edit files inside a mounted HDI disk?
It depends on the disk image. Some HDI files are read-only, meaning you can view and copy files from them but cannot modify or delete files inside. Others allow editing. If you try to edit a file and get a permission error, the disk is read-only — copy the file to your Mac first, edit it there, and save the changes.