Skip to content

ROM Renamer & DAT Library

File names lie. A ROM called game (1).bin might be a USA retail dump, a bad dump, or a prototype. DAT matching identifies files by their contents, then renames them to the canonical name used by No-Intro and Redump sets.

Everything runs offline: no API calls, no keys, no lookups.

Download a DAT from datomatic.no-intro.org or redump.org, then import it once:

Terminal window
openrom-core --import-dat nointro_snes.dat
openrom-core --list-dats

Imported DATs are copied into the application’s config directory (under dats/) and stay available for later scans. You can import as many as you like; a ROM is matched against all of them.

Terminal window
openrom-core --scan-roms /roms/snes
openrom-core --json --scan-roms /roms/snes

The scan hashes each file and reports:

Field Meaning
crc32 The computed checksum.
dat_source Which imported DAT the match came from.
matched Whether a known-good entry was found.
canonical_name The name the file should have.

Matching uses a composite CRC32 + size key, so files with a colliding CRC but the wrong length are not misidentified.

Terminal window
# Preview first
openrom-core --rename-roms /roms/snes --dry-run
# Apply
openrom-core --rename-roms /roms/snes

--dry-run prints every proposed rename without touching the filesystem. Renames are non-destructive: files are renamed in place, not moved or deleted.

A CRC32 is only 32 bits. Across tens of thousands of ROMs, collisions happen. Matching on CRC32 + size removes almost all false positives, which is why a correctly dumped file reliably lands on the right canonical name while a truncated or padded copy does not.

Copier headers change both the size and the CRC. If a file refuses to match, remove the header and scan again.

Terminal window
# Import the DATs you care about
for dat in dats/*.dat; do openrom-core --import-dat "$dat"; done
# Audit what matches
openrom-core --json --scan-roms /roms > scan.json
# Preview and apply renames
openrom-core --rename-roms /roms --dry-run
openrom-core --rename-roms /roms
# Trim duplicates and convert
openrom-core --1g1r /roms --priority "USA,Europe,Japan" --dry-run
openrom-core --folder /roms --format CHD --compression Max

Related: 1G1R and the MAME auditor.