CHD Format for Emulators: When Disk Image Conversion Is Worth It

Stylized illustration of a beige tower PC beside compressed data blocks in warm amber, no branding or text, for a CHD disk image feature.

A chd format emulator guide to what CHD compresses, how chdman converts cue and bin backups, and when the smaller file is not worth the space savings.

A single arcade hard-drive image can be several gigabytes, and a folder of them grows fast. CHD, short for Compressed Hunks of Data, is MAME’s on-disk format for storing that kind of content in less space while keeping a checksum on every chunk. I converted a small set of disc backups I own a while back and cut the folder nearly in half without losing a single boot. The format is not magic, though, and there are cases where leaving files as cue and bin is the better call. This guide explains what CHD does, how to create and check one with chdman, and when the conversion earns its keep. Everything here assumes you are working with personal backups of media you own.

What a CHD file actually is

CHD is a container format built for emulator data, originally for arcade hard drives and later extended to CD and DVD images. Instead of storing one flat blob, it splits the source into small units called hunks and compresses each one independently with a lossless codec. Because compression is lossless, the original bytes can be reconstructed exactly; the emulator sees the same sectors it would have read from a raw image. The file also stores metadata and per-hunk checksums, so a damaged or truncated CHD can be detected rather than silently producing garbage in a game.

For disc games, a CHD packs the cue and bin content, including audio tracks, into one file. For arcade machines that used hard drives, it replaces the raw drive image the game expects. In both cases the result is a single portable file with a known internal structure, which is why frontends and library scanners tend to like it.

Compression, integrity, and why the checksum matters

Lossless compression means no quality is lost, unlike the lossy compression used for video or audio. A CHD of a PS1 disc still carries every sector, every audio track, and every subchannel detail needed for accurate playback; it just stores repeated and predictable data more efficiently. The per-hunk checksums give you a free integrity test. Running a verify pass recomputes those checksums and reports any chunk that no longer matches, which catches a bad copy or a failing disk long before a game crashes mid-level.

That verification habit is the real payoff. I keep a short log of each conversion with the source size, the CHD size, and the date, then run a verify pass after moving files to a new drive. If a checksum fails, I go back to the untouched source and reconvert rather than trying to repair the compressed file.

MAME hard drives versus optical disc systems

The two main uses differ in what the emulator reads. In MAME, many later arcade boards shipped with IDE hard drives, and the .chd is the drive image the emulated machine mounts directly. The parent ROM set and the CHD are separate files that must both be present and correctly named. For optical consoles such as PlayStation, Saturn, or Dreamcast, the CHD stands in for the disc, and the core must support CHD as an input format. Not every core does, which is the single biggest compatibility caveat.

Source type Typical input chdman command Notes
Arcade hard drive Raw .hdd or image chdman createhd -i drive.img -o drive.chd Pair with the matching parent ROM set
Optical disc .cue plus .bin chdman createcd -i game.cue -o game.chd Requires a core that reads CHD
Verification Any .chd chdman verify -i game.chd Recomputes per-hunk checksums
Extraction Any .chd chdman extractcd -i game.chd -o game.cue Rebuilds cue and bin when needed

Notice that the commands are plain and predictable. createcd reads a cue sheet, createhd reads a raw drive image, verify checks integrity, and extractcd reverses the process. The tool is a command-line program bundled with MAME, so the exact flags are documented in its own help output; read that rather than trusting a half-remembered forum post.

Converting with chdman, step by step

  1. Start from personal backups of discs or drives you own, and keep the original cue, bin, or raw image untouched in a separate folder.
  2. Put chdman and the source files in a working directory, and open a terminal there so relative paths resolve predictably.
  3. For a disc, run chdman createcd -i game.cue -o game.chd, substituting your own cue filename. For a hard drive, use createhd with the raw image.
  4. Watch the progress output and let it finish; do not interrupt a conversion, or the result may be incomplete.
  5. Run chdman verify -i game.chd and confirm every hunk passes before deleting or archiving anything.
  6. Load the CHD in your emulator or MAME and start a game, then test a save or a late level to confirm the core reads it correctly.
  7. Only after the CHD boots and verifies should you move the originals to long-term storage. Record both sizes in your log.

Space savings versus compatibility

The gain varies with the source. Disc images with long CD audio tracks often shrink noticeably, while already-compressed data shrinks little. The trade is portability: a CHD is one file, easy to move and checksum, but it ties you to emulators that understand the format. Cue and bin remain the most widely accepted input across standalone players and older cores. If you share files between several emulators or use a handheld device with a limited core selection, keeping the original format avoids a conversion that one of them cannot read.

There is also a small CPU cost. Decompressing hunks on the fly is trivial for a modern desktop but can matter on a low-power handheld or single-board computer. I keep CHD on the main library where cores support it, and keep cue and bin copies for a couple of systems I run on weaker hardware.

When conversion is not worth it

  • A core or standalone emulator does not list CHD as a supported format, so the converted file simply will not load.
  • You regularly patch, translate, or edit the cue and bin files, where a flat image is far easier to work with than a compressed container.
  • The source is tiny or already dense, so the size saved is too small to justify the extra step.
  • You need to pass files to tools that expect raw bin sectors, such as certain patchers or disc analyzers.
  • You have not kept a verified backup of the original, which makes a failed or unwanted conversion irreversible for that copy.

The verification rule covers all of these: after any conversion, boot the game, run chdman verify, and confirm the CHD size and checksum in your log. If a core rejects the file, extractcd rebuilds the cue and bin from the CHD, so a verified CHD is never a dead end as long as you kept the source or the CHD itself intact.

My rule of thumb is simple: convert the large arcade drives and disc sets I play in cores that support CHD, keep a verified original on a separate disk, and leave small or frequently patched files alone. The space win is nice, but the checksum and the untouched backup are what let me sleep at night.

Related reading

If you want to keep digging into this corner of the library, these two posts on Roms Get go a little further:

Similar Posts