DMG IMG
File conversion

Convert DMG to IMG

QUICK ANSWER
Is it possible to convert DMG to IMG?
Yes - DMG converts to IMG.

The command-line tool dmg2img converts the DMG to a flat raw image on Windows and Linux. AnyToISO on Windows provides a GUI alternative. The resulting .img contains the original macOS filesystem (HFS+ or APFS) and will be larger than the source DMG since internal compression is removed.

4 programs
Also to IMG: KDZ · DD · UDF

On this page

Tested on macOS, Windows & Linux
Last verified Sep 2026

More free converters

HEIC, PNG, WEBP, MP3 and more - every tool here is free.

Open the toolbox

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

Quality & what to watch

  • The resulting .img is 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?
Not natively - the filesystem inside is HFS+ or APFS, which Windows does not support without third-party drivers.
Why is the output .img larger than the DMG?
DMGs compress their internal data blocks; the raw .img writes uncompressed filesystem bytes, expanding the file size.
Can I mount the .img on Linux?
HFS+ mounts with the Linux hfsplus kernel driver; APFS requires a third-party driver and is less straightforward.