So you downloaded an .iso image, and now you want to convert it to .dmg format? How can I convert .dmg to a Windows-compatible .iso on Mac? Don’t bother downloading any third party software, you can easily convert .dmg to .iso or .iso to .dmg format using the Terminal or Disk Utility on Mac OS X.
Method 1: Convert Between .DMG and .ISO Using Terminal
Mac OS X has a command line tool called hdiutil which allows you to create, mount and convert different types of disk image with ease. Here’s how to convert .dmg to .iso format using the Terminal:
- Just press Ctrl + Alt + T on your keyboard to open the Terminal.
- Enter the following command into the Terminal window, assuming that you’ve put the .dmg file on your desktop.
hdiutil convert ~/Desktop/filename.dmg -format UDTO -o ~/Desktop/filename.iso
The above command will create a file with the .iso.cdr extension.
- Simply rename the converted file to .ISO by removing the .cdr extension, and you’ll get a Mac compatible .ISO image.
However, a renamed file won’t work on Windows or Linux. To make a Windows/Linux/Mac compatible .ISO file, you have to convert the .cdr file to .iso format using this command:
hdiutil makehybrid -iso -joliet -o ~/Desktop/filename.iso ~/Desktop/filename.iso.cdr
If you need to convert a disk image from .iso to .dmg, just execute the following command in the Terminal window:
hdiutil convert ~/Desktop/filename.iso -format UDRW -o ~/Desktop/filename.dmg
Sit back and wait for the process to complete.
Method 2: Convert Between .DMG and .ISO Using Disk Utility
- Just launch Disk Utility (in /Applications/Utilities). In the menu bar at the top of the screen, select Images -> Convert.
- Browse to the .DMG or ISO file you would like to convert, select it and click on the Choose button.
- In the pop-up window, select Desktop as your destination. In order to convert .dmg to .iso, make sure to choose DVD/CD master as the Image Format. If you want to convert .iso to .dmg, set the Image Format to “compressed” instead. After that, click on Convert.
- When the conversion has completed, check your Desktop for the .CDR or .DMG image. If you got a .CDR image, just rename it to .ISO and you’re done.
Conclusion
DMG is a disk image format commonly used by Mac OS X, but it’s practically unusable on Windows or Linux platform. After converting .dmg to .iso on your MacOS, you can copy it to any Windows or Linux computer for burning or mounting.