How to Use Cheat Codes in Pokemon ROM Hacks
Updated October 25, 2026 · 10 minutes
Overview
Cheat codes are a quick way to skip a grind, test a team or rescue a run stuck behind a bad roll. In Pokemon ROM hacks they come with an extra catch: most codes online were written for the original games, and hacks often move, resize or replace the data those codes edit. A code that gives you a Master Ball in vanilla Emerald might give you a random item, a glitched Pokemon or a crash in a heavily modified hack.
This guide explains which code formats exist, how to enter them in the emulators most people use for hacks (mGBA, melonDS, Delta and RetroArch), and how to cheat without corrupting your save. It also points to the built-in tools many modern hacks include, which are often a better choice than cheats.
Step by Step
Back up your save first
Before enabling any cheat, copy your in-game save file somewhere safe and make a save state. Cheats write directly to the game's memory, and a bad code can change your party, your bag or story flags in ways that survive after you turn it off. With a backup, a broken code costs you a minute instead of a run. Our save guide shows where each emulator keeps its files.
Find codes made for your hack
Look for codes written for the specific hack and version you are playing, not for the base game. Modern GBA hacks built on CFRU or the pokeemerald decomp expand the Pokemon, item and move lists, so vanilla IDs often point to something else. Hacks that only rebalance trainers, such as many Kaizo and vanilla+ games, tend to keep more of the original layout, but there is no guarantee. If a code was not tested on your hack, treat it as an experiment.
Identify the code type
Emulators need to know which cheat device a code was made for:
- GBA: GameShark/Action Replay and CodeBreaker. CodeBreaker codes usually look like
XXXXXXXX YYYY; GameShark v3/Action Replay codes likeXXXXXXXX YYYYYYYY. Older GameShark v1/v2 codes are another format. - Game Boy / Game Boy Color: GameShark codes (eight hex digits) and Game Genie codes.
- Nintendo DS: Action Replay codes, written as pairs of eight-digit blocks.
Picking the wrong type is the most common reason a code does nothing.
Enter codes in mGBA
Load the game, open Tools > Cheats and click Add New Code (older versions show separate buttons per code type). Paste the code, choose its type or let mGBA detect it if your version offers that, give it a name and tick it to enable it. If a GameShark code does nothing, try adding it as CodeBreaker or Action Replay instead. On Steam Deck with EmuDeck, Start + D-pad Right opens the cheats menu in game.
Enter codes in melonDS
Open System and tick Enable cheats. With the game loaded, open System > Setup cheat codes, create a new category, then click New AR code. Name it and paste the Action Replay code. melonDS expects two eight-digit blocks per line, so reformat codes that arrive as one long line. Some codes are active immediately; others need a button combination listed with the code.
Enter codes in Delta on iPhone
Launch the game, open the pause menu and tap Cheat Codes. Tap +, choose which cheat device the code is for, then enter a name and the code. Enabled cheats show a check mark; tap a cheat's name to turn it off again. See our iPhone guide for setting up Delta.
Enter codes in RetroArch
While the game is running, open the Quick Menu and go to Cheats. Add a new cheat, enter the code, enable it and apply the changes. RetroArch can also load cheat files, but those are usually made for official games, so check that the file matches your hack before relying on it.
Test, save normally and switch it off
Test each code on its own, check that the result is what you expected and then disable it before saving in game. Leaving codes such as wild encounter modifiers or walk-through-walls running can trigger the wrong scripts, break events or leave you stuck in a wall. If something looks wrong, reload your backup rather than trying to fix it with another code.
Try the Hack's Built-In Tools First
Many modern hacks already include the features people usually cheat for. Lazarus has an in-game cheat menu. Run & Bun has an NPC that maxes IVs and changes natures, Emerald Imperium offers a nurse who raises Pokemon straight to the level cap, and Elite Redux lets you edit EVs from the summary screen. Radical Red's Minimal Grinding mode removes most EV and IV training.
These tools are made for the hack's own data, so they cannot corrupt your save the way a vanilla code might. Check the hack's documentation before you go looking for codes.
When Not to Use Cheats
Challenge communities have rules. Platinum Kaizo's Hall of Fame, for example, requires a recorded run under strict Nuzlocke rules, and cheats obviously disqualify you. The same goes for achievement sets: RetroAchievements' hardcore mode does not allow cheats.
Be careful with codes that change Pokemon species, forms or items in hacks with an expanded Dex. They are the most likely to produce glitched Pokemon. Shiny and encounter codes from vanilla guides are also risky, because many hacks change shiny odds and encounter tables.
FAQ
Do vanilla Pokemon cheat codes work on ROM hacks?
Sometimes. Codes for the base game may work on hacks that keep the original data layout, but hacks with expanded Pokemon, item or move lists often break them. Use codes made for your hack when possible.
Why does my GameShark code not work in mGBA?
Usually the code type is wrong. Try adding it as CodeBreaker or Action Replay, and check the code's format. Some GameShark variants are not supported.
Can cheats corrupt my Pokemon ROM hack save?
Yes. A wrong code can change your party, bag or story flags permanently. Always back up your save before enabling cheats.
How do I use Action Replay codes in melonDS?
Enable cheats in the System menu, open Setup cheat codes, create a category, add a New AR code and paste the code with two eight-digit blocks per line.
Can I use cheats on iPhone?
Yes. Delta has a Cheat Codes option in the pause menu, where you choose the cheat device and enter the code.
Is there an alternative to cheats in ROM hacks?
Many modern hacks include tools such as IV and EV editors, level-cap nurses, Infinite Candy or in-game cheat menus, which are safer than codes.