ROM hacking is the process of modifying a ROM image or ROM file — the data extracted from a video game cartridge, disc, or other storage medium — in order to alter its contents. Changes commonly target a game's graphics, dialogue, text, levels, music, gameplay mechanics, or other elements. The activity is typically pursued to improve or modernize an older game, as a creative outlet, to translate a game into another language, or to build essentially new, unofficial games using an existing game engine.
ROM hacks are usually created using a hex editor together with specialized utilities such as tile editors, level editors, and game-specific tools, while more advanced projects employ assemblers, compilers, disassemblers, and debuggers. Completed hacks are generally distributed over the Internet and played through emulators or on original hardware.
Terminology and scope
The term combines "ROM" (read-only memory, referring here to the dumped data file of a game) and "hacking" (in the sense of creative modification rather than unauthorized intrusion). Within the hobby, a "ROM hack" is the modified product, and a "ROM hacker" is the person who produces it. The practice overlaps with the broader concept of video game modding but is distinguished by its focus on binary ROM data rather than on officially supported or PC-based modification frameworks.
Common methods
- Hex editing: Direct modification of a game's hexadecimal (binary) data. It is used for editing text, items, and other data whose structure is known, and as a groundwork for assembly hacking. Because many games do not store text in ASCII, specialized hex editors that load custom "table" files (mapping byte values to characters) are frequently required. Compression schemes such as byte pair encoding (also called dual tile encoding, or DTE) are sometimes used by games and must be accounted for.
- Graphics editing: Altering the appearance of environments, characters, fonts, and other visual elements. Early consoles such as the NES, Super NES, and Game Boy typically store graphics as 8×8-pixel tiles, which are edited with tile editors.
- Palette editing: Modifying color values that determine the colors displayed in a game, often in conjunction with graphics hacking.
- Level editing: Redesigning or modifying a game's levels or maps, usually with a game-specific level editor.
- Data editing: Changing character, item, and enemy properties, either manually with a hex editor or with a game-specific editor.
- Assembly hacking (ASM hacking): Editing the game's actual machine code, considered among the most difficult techniques. It typically relies on emulators with built-in debuggers or on disassemblers, and permits changes ranging from enemy artificial intelligence to how graphics are generated.
- Decompilation: Recreating a game's source code in a high-level language (such as C) from its binary executable, then recompiling it. This is more feasible for fifth-generation and later consoles and can enable native ports, widescreen patches, and preservation efforts.
- Music hacking (sound hacking): Replacing or modifying a game's music tracks and sound effects. It is comparatively uncommon because music data storage formats vary widely between games and systems.
- ROM expansion: Increasing the total size of a ROM image to make room for additional content, a method whose difficulty depends on the target console and its memory mapper.
Distribution and patching
Because distributing complete ROM images raises copyright concerns, hacks are normally released as patches that record only the differences between the unmodified and modified data. Common patch formats have included IPS, PPF, and UPS, with formats such as APS also developed. Patches are usually significantly smaller than full ROM images and are applied to a user-supplied copy of the original game. In one notable instance, Sega's Steam-based Sega Mega Drive Classics Hub allowed ROM hacks of its included games to be distributed through the Steam Workshop.
Platforms and notable titles
The majority of ROM hacking activity has centered on NES and Super NES games, owing to their comparatively small size and simpler architecture. Game Boy, Game Boy Color, Game Boy Advance, PlayStation, and Sega Mega Drive (Genesis) games are also hacked, and activity has grown for later systems such as the Nintendo 64 and Nintendo DS as computing power and tool availability have increased. Frequently hacked series include Sonic the Hedgehog, Mario, Mario Kart, Pokémon, Castlevania, Final Fantasy, The Legend of Zelda, Mega Man, Fire Emblem, EarthBound, and Super Metroid. A notable early arcade example was Street Fighter II: Rainbow Edition, a hacked version whose popularity was cited as an influence on Capcom's official release of Street Fighter II: Hyper Fighting.
Subtypes
- Fan translation (translation hacking): Adapting a game, often one never officially localized, into another language.
- Anti-censorship hacks: Restoring content altered or removed during localization, particularly in older imported games.
- Randomizers: Shuffling the placement of items, characters, or other entities within a game.
- Unused-content restoration: Reimplementing features present in a game's code but absent from normal play.
Communities and history
ROM hacking communities have historically provided hosting for hacks, message boards, and IRC channels, and have produced extensive documentation and beginner-oriented guides (such as the early "Rom Hacking Bible" for the NES). One of the most prominent hubs was ROMhacking.net, which went online in late 2005 and hosted a large repository of hacks, translations, utilities, documents, and patches. On 1 August 2024, following nearly two decades of operation, the site transitioned to a read-only news format and released its database and files to the Internet Archive; new submissions ceased. A spiritual successor, romhack.ing (RHDI), launched in alpha on 15 August 2024 and opened for public registration in 2025. Other long-standing resources have included Zophar's Domain, Super Mario World Central, Sonic Retro, and various game-specific communities.
Legal considerations
ROM hacking has been associated with legal questions concerning copyright, since the underlying game data is protected. Distributing modified ROM images that contain substantial portions of the original copyrighted code can raise infringement concerns, which is a principal reason the community favors patch-based distribution. The legality of dumping or using ROM images also varies by jurisdiction, and some emulator-related and distribution practices have been the subject of litigation.
See also
- Video game modding
- Emulation
- Fan translation
- Game preservation