How to Convert BIN and CUE Files to CHD Safely

Use this convert BIN CUE to CHD guide to turn a lawful personal disc backup into one compressed file with chdman, then verify the result in your emulator.
A BIN and CUE pair is the most common way a personal disc backup lands on a hard drive, and it is also the messiest: two files, a text sheet that points at them, and audio tracks that vanish if anything moves. CHD fixes that by folding the whole disc into one compressed file. The tool is chdman from the MAME tools, and the subcommand is createcd. I only do this with discs I own and have dumped myself, because that is the lawful use case, and I keep the original pair untouched. This walkthrough covers the command, the CUE sheet, the failure cases and the check that proves the conversion did its job.
What you need before you start
You need four things: chdman from the MAME tools, the BIN and CUE files of a disc you own, a checksum utility, and the same emulator core you plan to play on. Check that chdman runs by asking it for its version from a terminal, and put the disc files in a folder whose path has no spaces, because a CUE sheet with a quoted path is a common source of trouble. Compute a hash of the BIN and the CUE before you touch anything and write them down; you will compare them again later to prove the source files are unchanged. I also keep a separate copy of the original pair on a second drive. None of this involves downloading a ROM or BIOS image, and the whole point is to preserve media you already have.
Read the CUE sheet first
Open the CUE file in a plain text editor. It is a short script, not a binary. A FILE line names the image that holds the data, TRACK lines declare each track on the disc, and INDEX 01 marks where a track starts. Audio tracks are declared with an AUDIO type rather than a data mode, and that line is what tells chdman to expect raw CD audio instead of sector data. Some dumps are a single BIN plus one CUE, which is the easy case. Others split the disc into one file per track, with the FILE line changing between TRACK blocks. Either layout works, as long as every FILE name matches a real file in the same folder. Get this right and the conversion is boring; get it wrong and chdman will either refuse the sheet or produce a disc with silent music.
| CUE line | What it does |
|---|---|
| FILE | Names the BIN or per-track image to read |
| TRACK | Declares a track number and its type |
| INDEX 01 | Marks the start offset of that track |
| AUDIO | Flags raw CD audio instead of data sectors |
The conversion procedure
Here is the sequence I use on a fresh dump.
- Open a terminal in the folder holding the CUE sheet and confirm the BIN and any per-track files are present.
- Run chdman createcd with the CUE as input and a .chd name as output, for example chdman createcd -i disc.cue -o disc.chd.
- Let it finish. The tool reads the data and audio tracks and writes one CHD, compressing both losslessly, so no information is thrown away.
- Watch the output for a line naming each track. If one is skipped, stop and fix the CUE sheet before you go further.
- Leave the original BIN and CUE exactly where they are until verification is done.
What can go wrong
Most failures come from the CUE sheet rather than the compression. A FILE line with a path that no longer matches the filename makes chdman stop immediately, and a CUE that points at an absolute path from someone else’s machine is a classic version of this. If audio tracks are declared as data, the game will load but the music will be missing, which is easy to miss until you reach a section that should have CD audio. Using createhd instead of createcd produces a file for hard-disk images that an optical-disc core will not accept. Folding a multi-disc set into one CHD is another trap, since each disc needs its own file. And a CUE that references a BIN you renamed will look fine until the tool reads it. Read the terminal output, because chdman names the track it is processing.
Verify in the same core
Do not trust a finished file just because the command exited cleanly. In the core’s disc-image setting, load the .chd where you would normally load the .cue, start the game, and reach a point that plays CD audio; if the music is there, the AUDIO tracks survived. Then recompute the hashes of the original BIN and CUE and compare them to the ones you wrote down, which proves the source pair was not modified by the process. Store the hash of the CHD as a reference for later. This two-part check catches the two real risks: a conversion that dropped audio, and a workflow that quietly damaged your backup. If either check fails, delete the CHD and redo the sheet, never the source.
Multi-disc games still need a playlist
CHD is one file per disc, and that is the whole design. A game that shipped on several discs therefore becomes several CHD files, and the emulator still needs to know the order and when to swap. The usual fix is a plain text playlist, commonly an .m3u file, that lists the CHD names one per line. Point the core at the playlist instead of a single CHD and disc changes become a menu action rather than a file rename. I name the files with a disc number so the order is obvious, and I keep the .m3u beside the CHDs. This is a small extra step, but skipping it is why multi-disc conversions appear to lose the second half of a game.
Keeping the original dump
I keep the BIN, the CUE and the CHD together, and I keep the hashes in a text note in the same folder. The CHD is the convenient copy for daily play, and the untouched pair is the thing I would work from again if a drive ever corrupts a file. That habit costs a little space and removes the one genuinely worrying failure mode, which is discovering too late that your only copy was the converted one. It also keeps the process honest: every file on the drive traces back to a disc I own. When you finish, check the folder once, confirm the original pair still matches its hashes, and leave it alone.
Related reading
If you want to keep digging into this corner of the library, these two posts on Roms Get go a little further:
