Replay
The Glitchhouse | Deep Cut

The Mew glitch: how to catch Mew in Red, Blue and Yellow

The Mew glitch catches a real Mew, at level 7 or as low as level 1, in Pokemon Red, Blue and Yellow with no cheat device: escape the Route 8 Gambler's battle with Fly, beat the Route 25 Youngster's Slowpoke, whose Special is exactly 21, then go back to Route 8 and press B when the START menu opens by itself. It works because the game reads that leftover 21 as the species for the battle it still owes you, and species 21 is Mew.

By GardenFlouer | Played through in the game's own code in Red, Blue and Yellow, checked against the disassembly

Every wild encounter in Pokemon Red and Blue starts by reading one byte: which species to send out. Normally the game sets that byte on purpose. The Mew glitch is what happens when it does not, when an old value is still sitting in that spot from something you did minutes ago. That leftover value is 21, and species number 21 is Mew. The animation above is that exact moment: a number becomes a Pokemon.

The short answer

Special 21 is Mew. The Route 25 Youngster's Slowpoke, level 17, has a Special of exactly 21. Escape a battle with the Route 8 Gambler by Fly, beat that Slowpoke, and a level 7 Mew appears when you come back to Route 8.

Want a different Pokemon? The planner below lists every battle that leaves any other number behind.

The one number

Mew's internal index in Red, Blue and Yellow is 21. Not its Pokedex number, 151, but the order it sits in the game's own species table. Leave a 21 where the wild species is read, and the game spawns Mew, at level 7, ready to catch.

The one number

The game keeps a list of every species in a fixed order, 190 slots long, and it fetches the wild Pokemon by its place in that list. Not by name, by number. Turn the dial and see what each leftover value would summon. Most land on ordinary Pokemon. A few land on gaps in the list, and the game shows you MissingNo. One of them, 21, is Mew. And the number is not only a species: the battle code reads a zero as no opponent at all, and anything from 200 up as a trainer.

Each value as the battle code reads it, verified against the ROM and the disassembly. 0 is no opponent, so no battle starts. 1 to 190 are the species list, where the gaps come back as MissingNo. 191 to 199 run past the end of that list into glitch Pokemon. 200 and up are trainers: the game subtracts 200 and reads a trainer class, and only classes 1 to 47 exist.

What Trainer-Fly actually does

So where does the leftover 21 come from? From a trainer battle you start but never finish. Walk through it.

Why a battle you flew away from comes back as a wild Mew. The exact route and setup are the glitch community's work; the anchor, that species 21 is Mew, is read straight from the ROM, and every step of it was played in the game's own code in Red, Blue and Yellow.

The steps

Here is the route most people use. Tick through it. Every step was played with button presses in the game's own code, in Red, Blue and Yellow, and it needs no tools and no cheats.

  1. Teach a Pokemon Fly, and make sure you have already visited Cerulean City and Lavender Town, since you will fly to both.
  2. On Route 8, walk into the line of sight of the Gambler who stands below the Underground Path entrance, before you have ever beaten him. Press Start as you step in, so the menu opens before the battle can begin. The tested spot: five tiles above him, then one step down.
  3. Choose Fly and go to Cerulean City. His "!" pops up as you take off. From here your Start menu stays shut and nobody will talk to you until you finish a trainer battle or black out, which is normal.
  4. Walk north onto Route 24, then east onto Route 25. Let the Youngster with the Slowpoke spot you from a few tiles away, so he walks up to you, and beat him. Never stand right next to him and never talk to him: either one locks the game. He has to be unbeaten too, since a beaten trainer never battles again. His Slowpoke's Special is exactly 21, and it has to be the last Pokemon you fight.
  5. Your menu works again. Fly to Lavender Town and walk west onto Route 8 without battling anything or talking to anyone, since a battle or an in-game trade offer would write over the 21. The Start menu opens on its own as you step onto Route 8.
  6. Press B to close it. A wild Mew appears, at level 7 unless a move changed the Slowpoke's Attack stage. Weaken it and throw a ball.
A wild Mew
The standard method, worked out and refined by the Pokemon glitch community over the years. Blue works exactly like Red: the same trainers, the same Slowpoke, the same Mew. Yellow works the same way too: the same Gambler, the same level 17 Slowpoke, the START menu on Route 8 and a level 7 Mew. The Yellow test ran with no Pikachu in the party, so a Pikachu walking behind you was not part of it.
One side effect: an item ball disappears

When the Mew battle ends, the game tidies up as if Mew had been a Pokemon standing on the map, like Snorlax or the legendary birds: it hides one map object. Mew was never on the map, so the game reads a leftover number instead and hides whatever that number names. On this route the leftover is the item ball at the east end of Route 25, TM19 (Seismic Toss). If you have not picked it up, it is gone for good, so pick it up on Route 25 once the Youngster is beaten, before you fly to Lavender Town.

That is the whole cost. The Gambler is not marked as beaten: the game sets an unused flag in his place, so by the code he will still challenge you afterwards (a second escape from him is not something we have played). Walk a different way back and a different object can vanish, which is where the stories of a missing Moltres or a missing townsperson after this glitch come from.

Tested 2026-11-12 in the game's own code in an emulator, Red and Yellow, on the route above: after the Mew battle one object flag had changed, the Route 25 item ball's, and one event flag, an unused one on Route 8. The Moltres case is read from the code and was not reproduced.

Plan any other Pokemon: the reverse planner

Mew is just one stop. After a trainer escape, the battle waiting on the escape route reads the low byte of the Special stat of the last Pokemon you battled, so every battle is a way to set the number. Trainer Pokemon have fixed DVs, so their Special is exact. Wild Pokemon roll their DVs, so their Special is a range. And a wild Ditto copies the Special of whichever of your Pokemon it Transforms into. Pick a target and a game, and the planner lists every battle that leaves that number behind.

Special 21 is Mew: a level 7 Mew when you step back onto the route you flew away from. The Route 25 Youngster's Slowpoke (level 17) has a Special of exactly 21.

Trainer lists come from the game's trainer data with the fixed trainer DVs (Attack 9, Defense 8, Speed 8, Special 8); wild lists from the encounter tables and base stats in the pret disassemblies, with Special = floor((base + DV) × 2 × level ÷ 100) + 5. One-off battles such as Snorlax, the legendary birds and Mewtwo set the number too, but are not listed. The Mew route in all three games and 15 Ditto values in each game were played through in the game's own code; every other combination here is worked out from the same rule.

Meet Mew

The Pokemon at the end of that number. Here it is, straight from the cartridge: its sprite, the base stats the game gives it, and its cry, rebuilt live from three bytes of sound data. Not a recording.

Mew, decoded from the ROM
MEW No. 151
PSYCHIC
Mew's real base stats and cry, read from a Pokemon Red ROM. Every stat is 100, the only fully balanced Pokemon in the game.

Choose Mew's level, even level 1

The level is the Slowpoke's Attack stage. The battle waiting on Route 8 reads its level from the byte where the game keeps the last enemy's Attack stage, stored as the stage plus 7. Leave the Slowpoke alone and that byte says 7. Every Growl that lands on it lowers the stage by one, so six Growls before you knock it out give you a level 1 Mew. Tested in the game's own code in an emulator in Red, Blue and Yellow: 0, 1, 2, 3, 4, 5 and 6 Growls gave Mew at level 7, 6, 5, 4, 3, 2 and 1.

No Growls: the Slowpoke's Attack stage is 0, stored as 7, so Mew comes at level 7, the usual Mew glitch.

What the game does: InitBattleEnemyParameters (home/trainers.asm) gives the waiting battle two leftover bytes, the first as the species and the second as the level. During a battle the game keeps the last enemy's Special (its low byte) and its Attack stage, stored as 1 to 13, in those same two bytes (ram/wram.asm). Every enemy Pokemon starts a battle at 7, and nothing resets the stage when the battle ends.

Only the last enemy's Attack stage counts. This is what moves it, from the game's move data and its stat code:

The level 1 route, step by step

  1. Bring a Pokemon that knows Growl. Charmander, Bulbasaur, Pikachu and Lapras all know it from the start. Our test used a level 70 Lapras.
  2. Follow the steps above until the Route 25 Youngster's battle.
  3. Use Growl on his Slowpoke until "Enemy SLOWPOKE's ATTACK fell!" has shown six times. A seventh Growl does nothing.
  4. Knock the Slowpoke out. Fly to Lavender Town and walk west onto Route 8, battling nothing on the way.
  5. Press B when the START menu opens. "Wild MEW appeared!" at level 1, with 13 HP and 7 in every other stat.
  6. Catch it with a free spot in your party. With a full party it goes into a PC box, and taking it out of a box freezes the game (see below).

The Ditto glitch can go above 7. Transform copies your own Pokemon's stat stages onto Ditto, so a raised Attack carries over: in our Red test one X Attack before the wild Ditto transformed gave a level 8 Mew.

Why a level 1 Mew jumps to level 100

A level 1 Mew jumps straight to level 100 the first time it gains fewer than 54 experience points. Mew grows on the Medium Slow curve, and the game's formula for that curve, 6/5 times the level cubed, minus 15 times the level squared, plus 100 times the level, minus 140, comes to minus 54 at level 1. The game keeps experience in three bytes with no room for a minus sign, so a caught level 1 Mew is stored with 16,777,162 points, far more than the 1,059,860 a level 100 Mew needs. After a battle the game adds the new points, cuts any total above the level 100 amount down to 1,059,860, and then works out the level from the total: 100.

Stored at level 116,777,162 (FF FF CA)
Points gained+12
After adding16,777,174 (FF FF D6)
Level 100 needs1,059,860
Kept1,059,860, cut down to the level 100 amount
Mew's level100

12 points, under 54: the sum is still above 1,059,860, so the game cuts it to exactly 1,059,860, and that is level 100. MEW grew to level 100!

The game's own arithmetic, step by step: CalcExperience gives level 1 its total, GainExperience adds the points and caps the total at the level 100 amount, and CalcLevelFromExperience turns the total into a level (engine/pokemon/experience.asm, engine/battle/experience.asm). Slide the points Mew gains in its first battle.

So the line sits at 54. With 0 to 53 points the sum stays at or below 16,777,215, the biggest number three bytes can hold, still above the level 100 amount, and Mew lands on level 100. At 54 the sum rolls past the top back to 0, and from 54 to 62 points Mew stays level 1, now an ordinary one. From 63 points on it simply grows: 63 gives level 2, 111 gives level 3.

The easy way to keep the points small: put Mew first in your party, start a battle with a low level wild Pokemon, switch Mew out for a Pokemon that wins, and the two share the points. On Route 1 a shared win is always worth less than 54 to Mew, 27 at most. Careful in Yellow: a level 7 Pidgey on Route 1 is worth exactly 55 to a Mew that wins alone, and that is one point too many.

Tested 2026-11-14 in the game's own code in an emulator, in Red, Blue and Yellow. The caught level 1 Mew held 16,777,162 points; its STATUS page prints the 16 as a blank tile and shows 777162, with 63 points to level 2. Sharing a Route 1 win with a Lapras it gained 12, 7 and 11 points and grew to level 100 with exactly 1,059,860. Sharing a Route 7 win it gained 105, 82 and 77 points, the sum rolled over to 51, 28 and 23, and it grew to level 2.

After the jump it is a real level 100 Mew with level 100 stats, 319 HP in our Red test, and one move, Pound. The game only teaches the move listed for the exact level a Pokemon reaches, and Mew has nothing listed at 100, so Transform (level 10), Mega Punch (20), Metronome (30) and Psychic (40) are skipped. TMs still teach Mega Punch, Metronome and Psychic, but no TM in Red, Blue or Yellow teaches Transform.

Before its first points: no PC, no Day Care

Taking a fresh level 1 Mew out of a PC box freezes the game. The game works out its level again from the 16,777,162 points by counting levels up until one needs more points than that. No level does, so the count runs past 255, wraps to 0 and goes on forever. A Mew caught with a full party goes straight into a box, so catch it with a free spot.

The Day Care does not make it level 100 either. Leave it there and talk to the man within 53 steps, and the game freezes the same way. Every step adds a point, and at 54 steps the total rolls over to 0, so after that the man hands back an ordinary Mew that has grown only as much as its steps since then allow. A Rare Candy also makes it ordinary: level 2 with 9 points.

Tested 2026-11-14 in the game's own code in an emulator, Red, Blue and Yellow: withdrawing it from Lavender Town's PC, and talking to the Day Care man right after leaving it, both left the game counting levels in CalcLevelFromExperience with no end after a minute. After 73 steps the Day Care gave it back at level 2 for 200 Pokedollars. The full party case is read from the code, not played.

The same door, other numbers

21 was kind to you: a real Pokemon, catchable, alive. The exact same trick with a different leftover number opens the door on something stranger. The read does not care what it lands on. Pick a number.

The wild-species read never checks whether the number lands on a real Pokemon or a gap in the list. Feed it 21 and you meet Mew; feed it a gap and you meet MissingNo. The battle code only steers a number away from the species list in two cases: zero, which means no opponent, and 200 and up, which mean a trainer.

Does it still work

This is a thirty-year-old bug in a cartridge, so a fair question is whether it still runs on anything you can actually hold. It does, on more than you would guess, and the Mew you make this way is real enough to carry all the way to the newest games.

The glitch is Generation 1 only, but the same ROM ships on the cartridge, the 3DS re-release, and every emulator, so the setup should run on all of them. Our tests ran in emulators, not on a cartridge or a 3DS. A Mew caught this way is a legitimate, tradeable Pokemon.

From the ROM

None of this is our claim to make. The number is written down in the game's own source. Here is the real list of Pokemon IDs from constants/pokemon_constants.asm. Count down from zero, or just tap a line: Mew sits at $15, which is 21.

The exact constants file the game is built from. The const macro just counts up from zero, so MEW lands on hex 15, decimal 21, the number the glitched read pulls out of memory.

And the letters are just as real. Every glyph on this page is read out of the cartridge font, eight bytes each, one bit per pixel. Watch M, E, W decode the way the Game Boy draws them.

Eight bytes from the cartridge. One bit per pixel.
The real font bytes from the ROM decoding into the letter in front of you. One bit set is one pixel of ink, on a white screen, exactly how the game does it.

Try it with your own name

The same read that turned 21 into Mew is the engine behind another famous glitch: the old man on Cinnabar's coast. After he shows you how to catch a Pokemon, the game briefly hands the wild-encounter routine your NAME and reads its letters as species. Type a name and watch each letter become a Pokemon, or a gap.

Each letter is one byte; the byte is read as a species index. Letters that land on a real number give a real Pokemon; letters that land on a gap in the list give MissingNo. The full Name Glitch calculator works out the exact encounters, and levels, the Cinnabar old man produces from a name.

Where to go next

You now know the number, the read, and why it lands where it does. Two places to take it further.

Battle engineFight a Lv 7 MewThe Gen 1 battle system, rebuilt from the ROM. Send out the exact Mew this glitch catches and take a turn. Name Glitch toolYour name, decodedType any name and see the full old man glitch encounter table it summons, cries and all, straight from the ROM. The GlitchhouseEvery specimenMissingNo, Mewtwo and the rest of the family this same door opens onto, plus 'M, the one it never reaches.

The route is decades of shared work by the Pokemon glitch community; what we add is the view from the ROM.

Related specimens

Go deeper: the Gen 1 battle engine | browse the Glitchhouse.