Why convert DMG to IMG?
A raw .img file is a generic disk image that virtual machine software, disk-writing utilities, and some bootable-USB tools can read without needing to understand Apple's UDIF format. These tools often accept .img but not .dmg.
How to convert DMG to IMG
dmg2img OPEN-SOURCE
Run dmg2img input.dmg output.img from the command line. On Linux install via your package manager; on Windows download the binary and run from Command Prompt.
AnyToISO FREE
Open AnyToISO, load the .dmg file, and export as a raw image. The free version handles files up to 870 MB; larger files require the paid licence.
AnyToISO for Mac FREE
Open AnyToISO for Mac, load the .dmg, and convert to a raw .img output file.
Programs that convert DMG
About these formats
A DMG file is an Apple disk image - the standard container for distributing Mac applications. On a Mac, double-click it to mount the image, then drag the app to your Applications folder. On…
Open .DMG details →An IMG file is most often a raw, sector-by-sector copy of a CD/DVD, floppy, USB stick, or partition -- frequently identical to an ISO file. On Windows 8 and later, right-click and choose…
Open .IMG details →Quality & what to watch
- The resulting
.imgis uncompressed and will be larger than the source DMG, which uses zlib or bzip2 compression internally. - Encrypted (AES) DMGs require the password before conversion can proceed.
- The filesystem inside is HFS+ or APFS - converting the container does not make the software inside run on Windows or Linux.
Frequently asked questions
Will the .img file mount on Windows?
Why is the output .img larger than the DMG?
.img writes uncompressed filesystem bytes, expanding the file size.