.GB

GB File

Game Boy ROM Image
Ask a question
QUICK ANSWER

A GB file is a byte-for-byte dump of a Nintendo Game Boy cartridge ROM, used by emulators to run the game. Open it with BGB or SameBoy on Windows, OpenEmu on macOS, or RetroArch on any platform. Downloading commercial ROMs you do not own is copyright infringement.

Developer: Nintendo (hardware/cartridge format); community convention for ROM dump files Category: Game Files MIME: application/x-gameboy-rom
OPENS ON Windows macOS Linux Android
Related: .OBB · .PAK · .ROFL · .PACKAGE

On this page

19k+ extensions indexed
Last reviewed Jul 17, 2026

Not sure what your file is?

Drop any file into our identifier - we read just the first bytes to name the format.

Identify a file

What is the GB file format?

.gb files are raw binary dumps of Nintendo Game Boy cartridge ROMs. The original Game Boy (model DMG-001) launched in Japan in April 1989, and .gb became the community-standard extension for preserved copies of cartridge read-only memory chips.

A .gb file is a direct byte-for-byte image of the cartridge ROM banks with no wrapping container or compression. The file begins with ROM bank 0, which holds the interrupt vectors at 0x0000, a 4-byte NOP+JP entry point at 0x0100, and the cartridge header from 0x0100 to 0x014F. The 48-byte Nintendo logo bitmap starting at offset 0x0104 must match a fixed binary pattern exactly - the Game Boy BIOS validates this on boot as an IP protection mechanism. An 8-bit header checksum at 0x014D is enforced by the BIOS; a 16-bit global checksum at 0x014E-0x014F is informational only and not verified by hardware.

ROM sizes range from 32 KB (simple cartridges) up to 8 MB for titles using Memory Bank Controllers (MBC1, MBC3, MBC5). Battery-backed save data is stored separately as .sav or .srm files, never inside the .gb file itself.

Games enhanced for Game Boy Color set header byte 0x0143 to 0x80 (GBC-compatible) or 0xC0 (GBC-only). Titles exclusively for GBC conventionally use the .gbc extension instead.

Security & safety

RISK: MEDIUM

A .gb ROM file is inert binary data and cannot execute on a PC. The risk is legal: downloading commercial Game Boy games you don't own is copyright infringement in most countries. ROM sites often have adware, fake download buttons, and occasionally mislabeled malware installers. Legal routes: dump cartridges you own with a GB cartridge dumper (e.g. GB Operator, Epilogue).

Format details

in a nutshell
FULL NAMEGame Boy ROM Imageaka Game Boy ROM, DMG ROM
DEVELOPERNintendo (hardware/cartridge format); community convention for ROM dump filessince 1989 (Game Boy DMG launch, Japan)
CATEGORYGame Files
MIME TYPEapplication/x-gameboy-rom
TYPERaw cartridge ROM image (binary)
This extension is also used by…
  • GenBank Sequence File - NCBI GenBank uses .gb as an extension for DNA/RNA sequence files in GenBank flat-file format; completely unrelated to gaming.
MAGIC BYTES · FILE SIGNATURE
OFFSET
10410510610710810910a10b
HEX
CEED6666CC0D000B
ASCII
··ff····
The 48-byte Nintendo logo at ROM offset 0x0104-0x0133 (decimal 260-307) must match a fixed bitmap exactly - the BIOS checks this on boot. The full expected sequence begins CE ED 66 66 CC 0D 00 0B 03 73 00 83 00 0C 00 0D 00 08 11 1F 88 89 00 0E DC CC 6E E6 DD DD D9 99 BB BB 67 63 6E 0E EC CC DD DC 99 9F BB B9 33 3E. Offset 0x0100-0x0103 is a 4-byte NOP+JP entry point. There is no magic at byte 0.

Programs that open GB files

Windows4 apps
BGB Free Drag the .gb onto the BGB window, or File > Open ROM. Excellent accuracy and built-in debugger.
mGBA Open-source File > Load ROM and select the .gb file. Primarily a GBA emulator but supports GB/GBC.
SameBoy Open-source File > Open ROM. Highest-accuracy GB/GBC emulator, Windows/macOS.
RetroArch (Gambatte/SameBoy core) Open-source Load the Gambatte or SameBoy core, then Load Content and pick the .gb.
macOS2 apps
OpenEmu Open-source Drag the .gb into your OpenEmu library; it auto-assigns the Game Boy system.
SameBoy Open-source Drag .gb onto the SameBoy icon or File > Open.
Linux2 apps
SameBoy Open-source Build from source or use a Flatpak build; File > Open ROM.
RetroArch (Gambatte core) Open-source Install Gambatte or SameBoy core via Online Updater, then Load Content.
Android2 apps
My OldBoy! (Game Boy emulator) Freemium Load the .gb from storage; excellent speed and save state support.
RetroArch Open-source Install Gambatte core, then Load Content and select the .gb.

Technical details

deep spec
ContainerNone - raw cartridge ROM dump with no filesystem or wrapper structure
Byte orderBig-endian (Z80/SM83 CPU architecture; multi-byte header values stored big-endian)
CompressionNone at file level; individual games may compress internal assets independently
ROM size range32 KB (bank-0-only cartridges) to 8 MB (MBC5 cartridges with maximum banking)
Entry point4-byte NOP + JP instruction at offsets `0x0100`-`0x0103`
Nintendo logo check48-byte bitmap at `0x0104`-`0x0133`; BIOS validates exact match on every boot
Header checksum8-bit checksum at `0x014D` covering bytes `0x0134`-`0x014C`; enforced by BIOS - mismatch prevents boot
Global checksum16-bit sum at `0x014E`-`0x014F`; covers all other ROM bytes; informational only, not hardware-verified
CGB compatibility flagByte `0x0143`: `0x80` = GBC-compatible DMG game; `0xC0` = GBC-only; `0x00` = DMG-only
Memory bankingMBC type identified at header byte `0x0147`; types include MBC1, MBC2, MBC3, MBC5
Save dataBattery-backed RAM stored separately as `.sav` or `.srm` files; not embedded in the `.gb` file
Screen resolution160×144 pixels (hardware property; not stored in ROM file)
Released1989 (Game Boy DMG launch, Japan)
Latest versionN/A (fixed hardware format; no versioning)
Specificationgbdev.io

GB conversions

Community Q&A

asked by users
Ask a quick question
Get help from people who work with GB files. Be specific - include your system and software version.
No account needed · answers usually within a day

No questions yet - be the first to ask about GB files.

Frequently asked questions

How do I play a .gb file on my PC?
Install BGB or SameBoy (Windows) or OpenEmu (macOS), then load the .gb file. No installation of the game - just open the ROM.
What's the best Game Boy emulator?
SameBoy is the most accurate. BGB is excellent and has a built-in debugger. mGBA also supports GB/GBC. On macOS, OpenEmu wraps SameBoy nicely.
What is the difference between .gb and .gbc?
.gb is typically for original Game Boy (DMG) games; .gbc is for Game Boy Color games. Some DMG games with GBC enhancements may use either extension. The internal CGB flag (0x0143) determines compatibility.
Where are my save files?
Saves are in a separate .sav (or .srm) file next to the ROM, not inside the .gb. Emulator save states are a different emulator-specific format.
Is downloading Game Boy ROMs legal?
Downloading commercial games you don't own is copyright infringement in most countries. Dumping cartridges you physically own is the legal route.
How do I apply a ROM hack to a .gb?
Patches come as .ips or .ups files. Apply them to the original ROM using Floating IPS (Flips), which produces the patched .gb.

References

1Wikipedia - Game Boyen.wikipedia.org
2Pan Docs - The Cartridge Header (gbdev.io)gbdev.io

Keep exploring

across the database

Top extensions this week

1.AQQAQQ Instant Messenger File
2.CRDOWNLOADChrome Partial Download File
3.EXEWindows Executable (Portable Executable)
4.NOMEDIAAndroid No-Media Marker File
5.DATProgram Data File (generic)
6.PARTPartial Download File
7.RPMSGRestricted Permission Message
8.BINCD/DVD Disc Image (BIN/CUE)
9.TMPTemporary File
10.MDMarkdown Document

Related extensions

.OBBAndroid Opaque Binary Blob (APK Expansion File)
.PAKGame Resource Package (PAK)
.ROFLLeague of Legends Replay
.PACKAGEThe Sims / Maxis DBPF Package (game content & mods) - dominant meaning
.XSBXACT Sound Bank
.SAVSaved Game File

Free file tools

An in-browser file identifier and image converter - everything runs on your device.

Open the toolbox

Browse file extensions A-Z