How to Catch Mew in Pokemon Red and Blue: The Glitch, and Why It Works
Mew was never in the game to be caught. It was handed out at events, behind glass. And yet, with no device and no cheat, a level 7 Mew walks into a wild battle. The reason is a single number the game forgot to clean up.
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.
Mew's internal index in Red and Blue 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, 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 nothing, and the game shows you MissingNo. One of them, 21, is Mew.
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.
The steps
Here is the foolproof route, the one most people use. Tick through it. It works on a real cartridge, no tools, no cheats.

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.
Why level 7
The level is not fixed either. It comes from another leftover number: a stat stage. Stages run from minus six to plus six, and the game stores them as one through thirteen, with zero stored as seven. An untouched setup leaves a seven in that slot, so you get a level 7 Mew. Nudge the stat first and the level moves with it.
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.
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.
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.
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.
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.
Where to go next
You now know the number, the read, and why it lands where it does. Two places to take it further.
A live decode, Mew's own cry, and more are still on the way. The route is decades of shared work by the Pokemon glitch community; what we add is the view from the ROM.
Go deeper: the Gen 1 battle engine | browse the Glitchhouse | arbitrary code execution.