Convert a DMG to ISO and Convert ISO to DMG on Mac
Have you ever needed to convert a DMG file to ISO, or an ISO file to DMG on your Mac? Converting image files on your Mac is easy thanks to a command line utility included in Mac OS X called hdiutil. Simply launch the Terminal and use the commands below, replacing the path and image file with your own.
Convert a DMG file to ISO
hdiutil convert /path/imagefile.dmg -format UDTO -o /path/convertedimage.iso
Convert an ISO file to DMG format
hdiutil convert /path/imagefile.iso -format UDRW -o /path/convertedimage.dmg
This tip is particularly useful if you have a CD/DVD burner on a Mac (or PC) and not a PC (or Mac) and you need to burn a disk image using the other machine.