# IMG (file format)

An IMG file is a raw disk image: a byte-for-byte, sector-by-sector copy of the contents of a storage device such as a hard drive, floppy disk, [USB flash drive](https://www.edgepedia.org/usb-flash-drive), [SD card](https://www.edgepedia.org/sd-card), or optical disc, stored as a single file with no compression, no metadata, and no container header.<sup>[1](https://whatthisfile.com/file/img/)</sup><sup> • </sup><sup>[2](https://www.reformatly.com/fileformats/img.html)</sup> The file contains exactly the data in the order it appears on the source disk, from the first sector to the last.<sup>[1](https://whatthisfile.com/file/img/)</sup>

| Key fact | Detail |
|---|---|
| Content | Exact byte-for-byte copy of a storage device: hard drive, floppy disk, USB flash drive, SD card, or optical disc<sup>[2](https://www.reformatly.com/fileformats/img.html)</sup> |
| Structure | No compression, metadata, or container format; just raw data in the order it appears on the physical disk<sup>[1](https://whatthisfile.com/file/img/)</sup> |
| Whole-disk image | Includes the partition table (MBR/GPT) and all partitions; a single-partition image starts at the partition's first sector<sup>[3](https://www.vioware.com/knowledge/disk-image-formats-iso-dmg-img-bin-cue.html)</sup> |
| Typical uses | Raspberry Pi SD card backups, USB drive clones, OS flashing images, virtual machine disks<sup>[3](https://www.vioware.com/knowledge/disk-image-formats-iso-dmg-img-bin-cue.html)</sup><sup> • </sup><sup>[4](https://www.geeksdigit.com/iso-vs-bin-vs-cue-vs-img-disk-image-formats-explained/)</sup> |
| Origins | Originally associated with disk image files created from floppy disks<sup>[5](https://www.file-extensions.org/img-file-extension)</sup> |
| Emulator support | Raw is the default disk image format in QEMU, chosen for simplicity and easy export to other emulators<sup>[6](https://www.qemu.org/docs/master/system/images)</sup> |
| Other meanings | The .img extension is also used by Grand Theft Auto game data, Garmin map files, ERDAS IMAGINE raster images, and GEM images<sup>[7](https://fileinfo.com/extension/img)</sup> |

## What the file contains

Because an IMG file is a raw copy, what it holds depends entirely on what was captured. A whole-disk image includes the partition table (MBR or GPT) and all partitions. A single-partition image starts at the partition's first sector and contains only that filesystem.<sup>[3](https://www.vioware.com/knowledge/disk-image-formats-iso-dmg-img-bin-cue.html)</sup> The contents are otherwise dependent on the filesystem of the disk that was imaged.<sup>[8](https://docs.fileformat.com/disc-and-media/img/)</sup>

The format is filesystem-agnostic: the imaging program copies whatever data is on the source disk without interpreting it, so the same extension covers floppy, hard disk, USB, and optical images.<sup>[9](https://win32diskimager.org/what-is-an-img-file-explained/)</sup><sup> • </sup><sup>[4](https://www.geeksdigit.com/iso-vs-bin-vs-cue-vs-img-disk-image-formats-explained/)</sup> Some IMG files are bootable and some are not, depending on the data they contain.<sup>[4](https://www.geeksdigit.com/iso-vs-bin-vs-cue-vs-img-disk-image-formats-explained/)</sup>

## How it is created and used

Because the file is raw, it is usually written back to a device rather than opened as an archive: you write an IMG to a USB stick or SD card instead of extracting files from it.<sup>[3](https://www.vioware.com/knowledge/disk-image-formats-iso-dmg-img-bin-cue.html)</sup>

Common uses include:

- Writing Linux distribution images directly to USB drives, where the image contains the full disk partition structure<sup>[4](https://www.geeksdigit.com/iso-vs-bin-vs-cue-vs-img-disk-image-formats-explained/)</sup>
- Backing up Raspberry Pi SD cards and cloning USB drives<sup>[3](https://www.vioware.com/knowledge/disk-image-formats-iso-dmg-img-bin-cue.html)</sup>
- Installing and accessing older operating systems such as MS-DOS in virtual machines, a use inherited from floppy disk images<sup>[7](https://fileinfo.com/extension/img)</sup>
- Serving as virtual hard disks in emulators; QEMU treats raw as its default format and notes that on filesystems supporting holes (such as ext2, ext3, or NTFS) only the written sectors reserve space<sup>[6](https://www.qemu.org/docs/master/system/images)</sup>

A raw image of a disk or partition is a larger file than a regular (non-raw) disk image of the same disk and takes longer to create.<sup>[10](https://www.disk-image.com/downloads/DiskImageUserGuide.pdf)</sup>

## Comparison with other image formats

IMG belongs to a family of disk image formats that differ in structure and compatibility.<sup>[4](https://www.geeksdigit.com/iso-vs-bin-vs-cue-vs-img-disk-image-formats-explained/)</sup>

- **ISO** is a byte-for-byte copy specifically of CD/DVD media using the [ISO 9660](https://www.edgepedia.org/iso-9660) filesystem, and is the most widely supported: Windows can mount it directly. Strictly speaking, an ISO is an IMG with the additional constraint of an ISO 9660 filesystem inside.<sup>[11](https://win32diskimager.org/img-vs-iso-vs-bin-file-format-differences/)</sup>
- **BIN** stores raw disc data and is usually paired with a CUE file, a text sidecar describing the track layout, which is needed for multi-track CDs such as audio or game discs.<sup>[11](https://win32diskimager.org/img-vs-iso-vs-bin-file-format-differences/)</sup><sup> • </sup><sup>[12](https://docs.libretro.com/guides/disc-images/)</sup>
- **DMG** is a macOS container supporting compression, encryption, and read/write variants, but is a portability barrier outside macOS.<sup>[3](https://www.vioware.com/knowledge/disk-image-formats-iso-dmg-img-bin-cue.html)</sup>

For optical media, raw formats such as DD, IMG, and BIN store the exact 2352-byte sector sequences on the disc, including error-correction data, while an ISO stores only the 2048 bytes of user data per sector.<sup>[13](https://archive.nyu.edu/bitstream/2451/43877/2/Schweikert_OpticalMediaPreservationNYU_2018.pdf)</sup> Multi-track disc images, including CD-Audio discs, can be stored in formats such as CUE/BIN, CCD/IMG, and MDS/MDF.<sup>[14](https://www.histo.cat/mini/e/ISO-vs.-IMG-and-NRG-formats)</sup>

Windows does not always mount IMG files automatically because they are not as standardized as ISO files; some can be mounted with third-party tools and some can be converted to ISO.<sup>[4](https://www.geeksdigit.com/iso-vs-bin-vs-cue-vs-img-disk-image-formats-explained/)</sup>

## Security consideration

Although .img files contain only static data, disk images have been used to distribute malware: as with ISO files, an image once mounted can appear as a drive with autorun behavior and conceal a program capable of evading certain "mark of the web" download alerts.<sup>[15](https://www.file-extension.info/format/img)</sup>

## Other uses of the .img extension

The extension is shared by several unrelated file types. Seven file types use .img, including:<sup>[7](https://fileinfo.com/extension/img)</sup>

- **Grand Theft Auto data files**: game data for GTA III and IV, stored as gta3.img in GTA III, Vice City, and San Andreas, with three format versions across those games; modders edit them with tools such as IMG Tool, SparkIV, and OpenIV<sup>[7](https://fileinfo.com/extension/img)</sup>
- **Macintosh disk images**: used by [Mac OS 9](https://www.edgepedia.org/mac-os-9) and earlier, later replaced by the .DMG format<sup>[7](https://fileinfo.com/extension/img)</sup>
- **Garmin map files**: map data such as street names, navigation routes, and points of interest for Garmin GPS devices<sup>[7](https://fileinfo.com/extension/img)</sup>
- **ERDAS IMAGINE image files**: geospatial raster images using the ERDAS Hierarchal File Format (HFA)<sup>[7](https://fileinfo.com/extension/img)</sup>
- **GEM images**: raster images from the 1980s Graphics Environment Manager by [Digital Research](https://www.edgepedia.org/digital-research), holding monochrome, grayscale, or color images of up to 16 colors<sup>[7](https://fileinfo.com/extension/img)</sup>

Because the same extension covers unrelated formats, identifying the creating program matters: an IMG from an old rendering package needs an image viewer, while one from a disk, emulator, GPS device, or OS download should be handled as a disk image.<sup>[16](https://www.openwith.org/file/img)</sup>

## References

1. [What is a .img file? — WhatThisFile](https://whatthisfile.com/file/img/)
2. [IMG Format - Disk Image | Reformatly](https://www.reformatly.com/fileformats/img.html)
3. [Disk Image Formats Explained: ISO vs DMG vs IMG vs BIN/CUE | VIOware Guides](https://www.vioware.com/knowledge/disk-image-formats-iso-dmg-img-bin-cue.html)
4. [What Is an IMG File? ISO vs BIN vs CUE vs IMG | GeeksDigit](https://www.geeksdigit.com/iso-vs-bin-vs-cue-vs-img-disk-image-formats-explained/)
5. [IMG file extension - file-extensions.org](https://www.file-extensions.org/img-file-extension)
6. [Disk Images — QEMU documentation](https://www.qemu.org/docs/master/system/images)
7. [IMG File - FileInfo.com](https://fileinfo.com/extension/img)
8. [IMG - Disk Image File Format | docs.fileformat.com](https://docs.fileformat.com/disc-and-media/img/)
9. [What Is an IMG File? Disk Image Formats Explained | Win32 Disk Imager](https://win32diskimager.org/what-is-an-img-file-explained/)
10. [Disk Image User Guide](https://www.disk-image.com/downloads/DiskImageUserGuide.pdf)
11. [img vs iso vs bin:format differences explained (2026)](https://win32diskimager.org/img-vs-iso-vs-bin-file-format-differences/)
12. [Disc Images: CUE, CHD and M3U - Libretro Docs](https://docs.libretro.com/guides/disc-images/)
13. [Optical Media Preservation, NYU (Schweikert, 2018)](https://archive.nyu.edu/bitstream/2451/43877/2/Schweikert_OpticalMediaPreservationNYU_2018.pdf)
14. [ISO vs. IMG and NRG formats - Institut Nova Història](https://www.histo.cat/mini/e/ISO-vs.-IMG-and-NRG-formats)
15. [IMG File - File-Extension.info](https://www.file-extension.info/format/img)
16. [IMG file - Open With](https://www.openwith.org/file/img)

---
*Topic: Encyclopedia › Sports, games, and recreation › Video games and digital play › Platforms and hardware › Emulation and preservation › ROM images and dumping*

*Initially written Sep 17, 2026 · Reviewed: Sep 30, 2026; Oct 21, 2026 · Edited: Oct 15, 2026; Oct 21, 2026 · Last review: Oct 21, 2026*

*Copyright 2026 EdgeChat AI, a subsidiary of Biostate AI.*

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license
