Simple Windows batch scripts for converting CD and DVD images to and from CHD format using CHDMAN.
These scripts focus on simplicity. You can drag-and-drop files, run them from the command line, or let them scan folders recursively. There are no dependencies beyond CHDMAN itself.
These tools help with compressing disc-based game images into CHD, or restoring them for use with software that needs .cue/.bin or .iso formats. Common use cases include:
- Game preservation and archival
- Use with emulators (e.g. RetroArch, DuckStation, PCSX2)
- Reducing storage size
| Script | Converts | For Disc Type |
|---|---|---|
cd_chd_create.bat |
.cue → .chd |
CD (e.g. PS1, Sega Saturn) |
cd_chd_extract.bat |
.chd → .cue + .bin |
CD |
dvd_chd_create.bat |
.iso → .chd |
DVD (e.g. PS2, Wii) |
dvd_chd_extract.bat |
.chd → .iso |
DVD |
Note: Use the CD scripts for older systems like PlayStation 1, Sega Saturn, TurboGrafx-CD, etc.
Use the DVD scripts for PlayStation 2, GameCube, Wii, and other DVD-based consoles.
- Windows Operating System
- CHDMAN executable (
chdman.exe) from the official MAME project
To use these scripts:
-
Download this repository as a ZIP:
Download ZIP -
Extract the
scriptsfolder to any folder on your system. -
Inside the extracted
scriptsfolder, place a copy ofchdman.exe(see below). -
Use the
.batfiles from that folder via drag-and-drop, double-click, or command line.
For safety and security reasons, this repository does not include the chdman.exe executable. Since you cannot always trust third-party binaries and repositories, it is best to download it yourself directly from the official source. This also ensures you get the most recent and compatible version.
- Go to the official MAME tools download page, download and install MAME.
- Go to the MAME install location and copy the
chdman.exeexecutable to the same folder as these.batscripts.
If you run a script without arguments (e.g. double-click it), it will recursively scan the current folder for supported files and convert all that don't already have matching output files.
Drag supported files (e.g. .cue, .chd, .iso) onto the appropriate .bat script.
cd_chd_create.bat "C:\Games\My PS1 Game.cue"
cd_chd_extract.bat "D:\Rips\Some Movie.chd"- Output files are saved in the same folder as the input files
- If the output file already exists, the script skips it
- CHDMAN errors (e.g. invalid input) are shown in the console window
MAME Project – creators of CHDMAN