What Is ROM Hacking? Changing a Game Without Rewriting It
ROM hacking changes bytes in a game program instead of rewriting it. Learn what a patch is, a little history, and where the lawful line sits.

On this page
What Is ROM Hacking? Changing a Game Without Rewriting It
An emulator runs a game's original instructions. A ROM hack changes some of those instructions, or the words and pictures stored beside them, and then something runs the result. The name comes from ROM, read-only memory: the chip that held a cartridge game. A ROM image is a file copy of the data that lived in that chip.

That is a narrower claim than "it is a new game." A remake is new code. A port rewrites the game for another machine. A cheat may change a number in memory while the game runs, and then forget it. A ROM hack edits the stored program itself. The next time that file starts, the change is already there.
The game is still a separate work. Changing a byte does not make the rest of the file yours. This article will not explain how to obtain a commercial game, a BIOS, or a way around a lock.
Three different answers

An emulator pretends to be the old chips. The program file can stay byte for byte the same.
A ROM hack is a changed copy of that program. Graphics, text, levels, music, or rules can move. The machine, real or emulated, is still executing a modified original, not a program someone typed from a blank file.
A remake does not need the original bytes at all. If the old program never starts, you are not ROM hacking. You are writing a new game that remembers an old one.
A toy you can run
The useful practical example is a file you are allowed to change, because you are about to write it.
Save this as toy_patch.py and run it with python toy_patch.py.
1base = bytearray(b"TOY1HELLO")
2patch = [(4, ord("J"))]
3
4def apply(data, changes):
5 out = bytearray(data)
6 for offset, value in changes:
7 out[offset] = value
8 return out
9
10def show(data):
11 print(" ".join(f"{b:02X}" for b in data), data[4:].decode("ascii"))
12
13show(base)
14show(apply(base, patch))The printed lines are:
54 4F 59 31 48 45 4C 4C 4F HELLO
54 4F 59 31 4A 45 4C 4C 4F JELLO
TOY1 is a made-up header. HELLO starts at offset 4. The patch does not contain the word HELLO. It contains one instruction: at offset 4, write the byte for J. That is the whole idea of a patch. The base file supplies the rest.
A real patch also has to name the base file it expects. Change the example to b"TOY1WORLD" and the same patch produces JORLD. The edit ran, and the result is nonsense, because the base was wrong. A careful format refuses that mistake. The toy does not. Do not point this script at a file you do not have a right to change.
What people actually change

Text is often not stored as the letters you see. A game may store an index into its own font. Changing the index changes the letter. A longer translation may not fit in the old space. That is a layout problem, not permission to copy the game.
Tiles are the small pictures the hardware repeats. A sprite hack redraws those tiles. The character can look new while the collision code is still the original.
Levels are data, not pictures. A specialized editor reads that data and lets a person move objects. Lunar Magic, by FuSoYa, is the long-running example. He began it in February 2000 and released it to the public on September 24, 2000, as a level editor for Super Mario World on the Super Nintendo. It does not include the game. This article will not explain how to get one.
Rules live in machine code. An assembly hack changes behavior: a new move, a different physics value, a skip. That work is closer to programming than to painting. It is also the easiest place to break the game, because one wrong byte can be a different instruction.
One program can cover a family of changes and still be useless on another game. Lunar Magic understands one game's levels. It is not a universal ROM editor.
The patch is the difference, not the game

The community habit is to share the patch, not the modified game. The patch is a list of differences. The person applying it is supposed to supply a base file they already have a right to use. A patch is smaller. It is not a license.

IPS, the International Patching System, is the old common format. A document dated December 24, 1994, version 1.1, says its job is to distribute the changed bytes instead of the whole file. An address in that format is three bytes, so a patch can only point at offsets up to 16,777,215. The same document says the original author was unknown to the writer. There is no checksum of the base file. A wrong base can be patched quietly into nonsense.
BPS, Binary Patching System, is a later format specified by byuu and placed in the public domain. A BPS file begins with the marker BPS1. At the end it stores three checksums: the source file, the target file, and the patch itself. A careful patcher can refuse a base file that is not the one the patch expected. That check is a safety feature. It is not a reason to go looking for another copy of a game.
Floating IPS is a patcher for IPS and BPS files. It applies a patch to a file you already have. It does not supply the game. The GitHub project was archived in 2025, so treat it as a reference, not as a promise of future fixes.
Some old game files carry an extra header, or come from a different revision. A patch may reject them. If you do not already have a file you have a right to use, stop. This article will not describe how to find, dump, or repair a commercial ROM.
A short history

Early hobby edits are harder to date than a signed release. The fan-translation history collected on Romhacking.net is the community's own record, assembled from a 2005 project by Nightcrawler, not a company archive. It dates Oasis, founded by Dennis Lardenoye and Ron Bouwland, to April 1993. The group set out to translate Japanese MSX games into English. A translation replaces text. The pictures and much of the code are often still the original game. That is why a translation patch is not a new work you are free to upload.
The December 24, 1994 IPS document is a format note, not a history of every edit that came before it. It does show that, by then, people already wanted to send the difference instead of the whole file.
Lunar Magic's public release on September 24, 2000 is easier to date because the author wrote it down. Before that editor, FuSoYa says, much Mario hacking had focused on NES games, and Super Mario World's formats were not documented. A level editor changes who can participate. You no longer have to guess which bytes are a pipe. You still have to have a lawful base file, and the editor still does not provide one.
BPS comes later. The specification, as cited here, does not give a release day. What it does give is the design answer to IPS: checksums, and no three-byte address ceiling. The text attributes itself to byuu and to byuu.org. That host no longer resolves, so the citation below is a public copy of the specification.
None of these dates is permission. A famous patch can still be a derivative of a game you do not have a right to copy.
A lawful first session
The toy above is the clean practical case. You wrote the base file. You can see every changed byte.

- Decide what you have a right to change. That can be the toy, a program you wrote, or a game whose author released it for modification. An official editor from the publisher is the simplest case. Owning a cartridge does not, by itself, answer the legal question.
- Get the tool from the people who make it. Lunar Magic comes from FuSoYa's site. A patcher such as Floating IPS applies a difference to a file you already have. A download that bundles a game, or a ready-to-play modified ROM, is a different product.
- Keep the result local. If you share anything, the community habit is to share a patch, and even a patch can be a derivative work. Do not upload the modified game file.
- Stop if the next instruction is a downloaded ROM, a BIOS pack, a header repair from a stranger, or a way to break a lock. This article will not describe those steps.
Homebrew is the clean middle example. Some authors publish a game they wrote and explicitly allow edits. Follow the license they attached. Do not treat a random archive as the author.

What to remember
ROM hacking edits a stored program. An emulator runs a program. A remake replaces it. A patch is the list of differences, not the game, and a patch is not permission. IPS can address 16,777,215 bytes and will not check that you started from the right file. BPS records checksums so a careful tool can refuse the wrong base. The practical lesson is the toy: change a byte you are allowed to change, and stop when the next step is someone else's game.
Sources
- IPS format document, version 1.1, December 24, 1994, as preserved at Archaic Ruins. Three-byte addresses, maximum offset 16,777,215, and the stated goal of distributing a patch instead of the whole file. The document's author did not know who created the format.
- BPS file format specification, by byuu, public domain. Marker
BPS1, and checksums of the source, the target, and the patch. The specification attributes itself to byuu.org, which no longer resolves. - Floating IPS. A patcher for IPS and BPS files. The repository was archived on May 21, 2025.
- Lunar Magic introduction, FuSoYa. Work began in February 2000. First public release September 24, 2000. A Super Mario World level editor. It does not include the game.
- Romhacking.net, fan-translation community history. A 2005 community history project. Dates Oasis to April 1993. Community recollection, not a company archive.
- Sony Computer Entertainment, Inc. v. Connectix Corp., 203 F.3d 596 (9th Cir. 2000), listed in the US Copyright Office fair use index.
Read next

What Is a Video Game Emulator? Old Games on New Machines
A video game emulator imitates old hardware so the original program can run on a new machine. Learn the history, the techniques, and a lawful way to try one.

A Brief History of Video Games: From Lab Screens to Everywhere
From an oscilloscope tennis match to pocket-sized worlds, follow the inventions, surprises, setbacks, and new places to play that shaped video game history.

The History of Artificial Intelligence: A Simple Timeline
From Alan Turing’s early question to today’s chatbots, explore the people, pauses, and breakthroughs that shaped artificial intelligence—in plain language.
Comments
Be kind and specific. Comments with links from new accounts appear after a moderator reviews them.