Glitch City in Pokemon Red, Blue and Yellow
Glitch City is a scrambled map you can walk into in Pokemon Red, Blue and Yellow. Pay for the Safari Game, answer NO when the worker asks "Leaving early?", save inside and reset, then leave through the gate with the game still running and let the steps run out on a route: the game takes you back to the gate, and walking out of it drops you onto a real map with your position and the screen read from the wrong four bytes. All 63 Glitch Cities, 21 in each game, are mapped below.
The short answer
- What it is. Glitch City is a real map drawn from the wrong place. The map, its tiles, its doors and its wild Pokemon are all correct. Only your coordinates and the screen pointer are wrong.
- Why it happens. When the Safari Game's steps run out, the gate's exit sends you to door 5 of the last outdoor map you were on. A map with 4 or fewer doors has no door 5, so the game reads the 4 bytes just past the end of its door list. Those bytes are the start of the map's own block data, and they become the screen pointer, your Y and your X.
- Red, Blue and Yellow. The NO, save and reset method works in all three games. The poisoned blackout method works in Red and Blue only, because Yellow fixed it.
- The step count. Paying sets the counter to 502. The worker walks you two steps into the Safari Zone and those count, so the START menu shows 500/500. The game ends on the 501st step after that, because it checks for 0 before it counts down.
- Where. Each game has 21 outdoor maps with 4 or fewer doors, so each game has 21 Glitch Cities. The roomy ones are Cycling Road (Route 17), Route 20, Route 6 and Route 14. In most of the rest you cannot take a single step. All 63 are mapped in the Glitch City map gallery.
- Is it safe. These Glitch Cities write nothing outside the map's memory, so they do not damage your save by themselves. The danger is saving inside one without Fly or Teleport. Walking off Route 6's west edge crashes the game.
How to get into Glitch City
This is the route that was played, by button presses, in Red, Blue and Yellow. You need the 500 entry fee and a Pokemon that knows Surf. Bring one that knows Fly too: it is the clean way back out. Tick the steps as you go.
The steps, in plain text
- Stand below the Safari Zone gate in Fuchsia City with at least 500 and a Pokemon that knows Surf.
- Walk in and up to the worker. Answer YES and pay. He walks you into the Safari Zone.
- Step straight back down into the gate. He asks "Leaving early?". Answer NO. He says "Good luck!" and walks you back into the Safari Zone.
- Now, standing in the Safari Zone, open START and choose SAVE. Then reset (A+B+START+SELECT, or switch off and on).
- Choose CONTINUE. Step down into the gate. The worker greets you at the counter and asks if you want to play. Answer NO and walk out into Fuchsia City. The Safari Game is still running: the step counter keeps counting outside.
- Walk south to Route 19, Surf west onto Route 20, and keep moving until the steps run out.
- The PA announces the end of the game and you are taken to the gate. Listen to the worker, then walk out of the gate's south door. You arrive in Route 20's Glitch City at x 107, y 107.
Which Glitch City you get
You get the Glitch City of the outdoor map you are on when the steps run out. If you are indoors at that moment, it is the last outdoor map you left through a door. That map has to be one of the 21 in the atlas below. A map with 5 or more doors has a real door 5, so the game just drops you outside that door instead: Cerulean City puts you outside the Bike Shop, and Fuchsia City outside the Safari Zone gate. That is the plain Safari Zone exit glitch, with no city.
The other way in: a poisoned blackout (Red and Blue only)
- Enter the Safari Zone with a party of one poisoned Pokemon low on HP. In these games poison keeps hurting a Pokemon as you walk.
- Walk around until it faints. You black out and are sent back to the town of the last Pokemon Center you used. In Red and Blue the Safari Game is still running.
- Go to a map from the atlas and walk until the steps run out, then walk out of the gate's south door.
This was played in Red and Blue from a save whose blackout point was Pallet Town, and it ended in Pallet Town's Glitch City at x 82, y 80. In Yellow the same presses go nowhere: the blackout itself ends the Safari Game and sets the steps to 0.
Why it happens
Three things in the game's code line up.
- The steps keep counting outside. After every step, on any map, the game counts down the Safari steps while its "in the Safari Zone" flag is set. It never checks where you are. The normal ways out clear that flag: answering YES to the worker's "Leaving early?", the time-up exit, an Escape Rope or Dig. Two things do not: the NO, save and reset trick, and in Red and Blue a blackout. Answering NO stores the worker's next script in a byte called wNextSafariZoneGateScript ($CF0D), which sits outside the part of memory the save keeps. After a reset that byte is 0, so the worker greets you as a new visitor and lets you leave with the flag still set.
- Time up sends you through the gate. When the steps run out, the PA plays and the game warps you to the gate. If you were on an outdoor map, it records that map as the last map. The gate's south doors lead to "the last map, door 5".
- Door 5 does not exist. To place you, the game copies entry 4 of that map's warp-to table (door 5, counting from 0): 4 bytes holding a screen pointer, a Y and an X. A map with 4 or fewer doors has no entry 4, so the game reads past the end of the table. In the cartridge each map's block data comes right after that table, so the map's own first block ids are read as the screen pointer and your position.
| Entry | What is stored there | Read as a door |
|---|---|---|
| 0 | Door 1, your house | arrive at x 5, y 5 |
| 1 | Door 2, your rival's house | arrive at x 13, y 5 |
| 2 | Door 3, Oak's lab | arrive at x 12, y 11 |
| 3 | past the end: Pallet Town's block ids 0 to 3 | never used |
| 4 | past the end: Pallet Town's block ids 4 to 7, $4F $0B $50 $52 | screen pointer $0B4F, y 80, x 82 |
Everything else is right. The map's header, tileset, doors, signs, people and wild Pokemon are its own, loaded the normal way, and its block data sits correctly in its 1,300-byte buffer. The screen is the only thing drawn from the wrong place: the game reads 6 by 5 block ids from wherever the screen pointer points, mostly the cartridge's own code and data, and draws each with the map's real tiles. Walking slides that window over the same bytes. Saving keeps all of it, so a game saved in Glitch City loads straight back into it.
The atlas: every Glitch City in Red, Blue and Yellow
Here is every Glitch City the Safari Zone can make, whole, as the game draws it: 21 per game, 63 in all. Pick a game and a map, drag to look around, pinch or use the buttons to zoom, and switch on the overlays to see where you can walk, where you arrive, where the map's real doors are and what each edge of the area does.
The map galleryEvery Glitch City full screen, with downloadsAll 63 maps as full-size PNG and WebP files, one zip per game, and a viewer with the walkable spots, warps, edges and a coordinate grid. Play itWalk through Glitch City yourselfThe 24 Glitch Cities you can move in, played by the game's own walking code: walls, ledges, the wild Pokemon of three of them, Fly and Teleport.A Glitch City is not endless. Your X and Y are single bytes, and the game loads another map the moment either one reaches 255 or the first value past the real map's edge, so each city is a box. The biggest boxes are 234 by 236 coordinates: 123 by 123 blocks of screen, 3,936 pixels square.
Route 20, Pokemon Red. You arrive at x 107, y 107, and the screen is drawn from address $6B6B (ROM bank $19).
Pallet Townx 82, y 80 · 1 walkable
Indigo Plateaux 39, y 28 · 1 walkable
Route 1x 49, y 10 · 10 walkable (Yellow 1)
Route 3x 44, y 44 · 1 walkable
Route 4x 42, y 87 · 1 walkable (Yellow 2)
Route 6x 10, y 116 · 99 walkable
Route 9x 87, y 43 · 1 walkable (Yellow 11)
Route 10x 87, y 87 · 1 walkable
Route 12x 41, y 44 · 9 walkable (Yellow 6)
Route 13x 15, y 15 · 1 walkable
Route 14x 119, y 119 · 42 walkable (Yellow 43)
Route 15x 10, y 10 · 13 walkable (Yellow 2)
Route 17 (Cycling Road)x 67, y 67 · 146 walkable
Route 18x 49, y 100 · 1 walkable
Route 19x 37, y 87 · 1 walkable
Route 20x 107, y 107 · 111 walkable (Yellow 83)
Route 21x 10, y 10 · 1 walkable
Route 22x 87, y 43 · 1 walkable (Yellow 29)
Route 23x 54, y 54 · 1 walkable
Route 24x 87, y 87 · 1 walkable
Route 25x 87, y 87 · 1 walkable (Yellow 5)
All 21 Glitch Cities. Red and Blue share every value here; Yellow differs where shown.
| Map | Real doors | Arrival x, y | View pointer | Area (coordinates) | Walkable, Red and Blue | Walkable, Yellow | Edge you can walk through |
|---|---|---|---|---|---|---|---|
| Pallet Town | 3 | 82, 80 | $0B4F | 234 x 236 | 1 | 1 | none |
| Indigo Plateau | 2 | 39, 28 | $1B1A | 234 x 236 | 1 | 1 | none |
| Route 1 | 0 | 49, 10 | $0A0A | 234 x 36 | 10 | 1 | none |
| Route 3 | 0 | 44, 44 | $2C2C | 70 x 236 | 1 | 1 | none |
| Route 4 | 3 | 42, 87 | $572B | 90 x 236 | 1 | 2 | none |
| Route 6 | 4 | 10, 116 | $7474 | 20 x 218 | 99 | 99 | west: map $FF (crash) |
| Route 9 | 0 | 87, 43 | $2A57 | 194 x 236 | 1 | 11 | none |
| Route 10 | 4 | 87, 87 | $5757 | 234 x 182 | 1 | 1 | none |
| Route 12 | 4 | 41, 44 | $2C2C | 234 x 108 | 9 | 6 | none |
| Route 13 | 0 | 15, 15 | $1C31 | 60 x 18 | 1 | 1 | none |
| Route 14 | 0 | 119, 119 | $7777 | 234 x 200 | 42 | 43 | none |
| Route 15 | 4 | 10, 10 | $0A0A | 60 x 18 | 13 | 2 | none |
| Route 17 (Cycling Road) | 0 | 67, 67 | $654E | 234 x 144 | 146 | 146 | none |
| Route 18 | 4 | 49, 100 | $4318 | 50 x 236 | 1 | 1 | none |
| Route 19 | 0 (Yellow 1) | 37, 87 (Yellow 26, 26) | $241B (Yellow $1A29) | 234 x 200 (Yellow 234 x 54) | 1 | 1 | none |
| Route 20 | 2 | 107, 107 | $6B6B | 154 x 236 | 111 | 83 | west: Route 19 |
| Route 21 | 0 | 10, 10 | $4E74 | 20 x 90 | 1 | 1 | none |
| Route 22 | 1 | 87, 43 | $2C2C | 214 x 236 | 1 | 29 | none |
| Route 23 | 4 | 54, 54 | $1735 | 234 x 144 | 1 | 1 | none |
| Route 24 | 0 | 87, 87 | $5757 | 234 x 218 | 1 | 1 | none |
| Route 25 | 1 | 87, 87 | $5757 | 194 x 236 | 1 | 5 | none |
Want them bigger, or on your own computer? The Glitch City map gallery opens every map full screen and has each one as a full-size PNG, plus one zip per game.
Credit where it is due: TheZZAZZGlitch's site has full-size out-of-bounds maps of Pallet Town and Sea Route 20 and a diagram of how the space outside a map is laid out, in its out-of-bounds diagrams section. Those show a related trip: walking off a real map's edge into the bytes around it. We could not find any other atlas of the Safari Zone Glitch Cities, every map in all three games.
How a map is built
To understand Glitch City you have to know how a normal map is made. It is not drawn pixel by pixel. It is a grid, and every cell holds one block, a four by four square of tiles chosen from a set. Here is the real Kanto overworld block set. Pick a block, paint the map, and see a town take shape, or hit Random for something closer to a Glitch City.
Solid or air
Here is the cruel part. Each block is four squares you can stand on, 16 by 16 pixels each, and for each square the game tests a single tile: its bottom-left 8 by 8 tile must be on the tileset's short walkable list. Everything else is a wall, and Glitch City is mostly everything else. Tap any block to see its four test tiles checked against the real overworld list.
How to get out
In most Glitch Cities you cannot walk anywhere, so what gets you out? Every one of these 21 maps keeps its real outdoor tileset, and that decides which moves work. Try each one.
Is it dangerous
Glitch City has a scary reputation, and most of it is a misunderstanding. The Safari Zone Glitch Cities write nothing outside the map's memory: the map loads exactly as it should, and only the view is wrong. The real hazards are simpler. You can get stranded, with no way out and a save made inside, and Route 6's west edge loads map $FF, which crashes the game. How bad that is depends on where you are playing.
A side trip: where you stand picks the trainer
This one is a different glitch from the Safari Zone Glitch City, and Glitch Lab has not tested it. The Glitch City Research Institute documented it, and pret's memory map agrees with how it works. The game keeps a pointer, wMapViewVRAMPointer, aimed at the top-left corner of the screen in video memory. In RAM it sits right after the table that holds the trainer class and team of the map's 16 people. When a glitched map script asks for an 18th trainer, the read runs past that table and lands on the pointer, and its low byte becomes the trainer class. Take one step and you change who you fight.
From the ROM
One last look under the hood, straight from the cartridge. Every block in the game, real map or Glitch City, is exactly sixteen numbers, each one pointing at an 8 by 8 tile. Slide through the real block set and watch a block break into its tiles.
How we know
The Safari Zone facts on this page were tested by running the game's own code, with button presses, in an emulator (PyBoy), starting from normal saves on dumps of the author's own Red, Blue and Yellow cartridges, each checked against pret's disassemblies by its SHA-1. The parts of the game that do not depend on random numbers were run again in a second emulator, gambatte, frame by frame alongside the first, and the two agreed. Nothing here was tested on a real Game Boy. The test rig is called Glitch Lab.
- The NO, save and reset method was played from start to finish in Red, Blue and Yellow and ended in Route 20's Glitch City at x 107, y 107, with screen pointer $6B6B. Memory was read at every stage: 502 steps on paying, 500 on arriving in the Safari Zone, the worker's two script bytes after the NO, after the save and after the reset. Without the NO, the worker asks "Leaving early?" again after the reset. A power cycle instead of the soft reset gives the same result. gambatte agreed at every stage until the walk on Routes 19 and 20, where a random wild battle, or a step taken one frame apart, made the two emulators part.
- The poisoned blackout was played in Red and Blue and ended in Pallet Town's Glitch City at x 82, y 80, screen pointer $0B4F. gambatte agreed on the time-up and the gate exit. In Yellow the same play ends the Safari Game at the blackout.
- All 63 Glitch Cities (21 per game) were reached for real: a save on each map with one Safari step left, then the last steps, the PA, the worker and the gate exit, all by button presses. Each one matched the prediction in every value the game reads, apart from a few screen tiles on Indigo Plateau and Route 23 that come from video memory. A Glitch City saved from the game's own START menu loads back byte for byte, in both emulators.
- The walkable areas come from a flood fill that follows the game's movement rules. Each one was then checked in the game itself: from every reachable spot each direction was pressed and the new position read from memory. All 63 matched exactly, exits included. This check ran in PyBoy only.
- Route 6's crash was run in the game's own map loader: loading map $FF writes thousands of bytes past the map buffer, and the game freezes in Red, Blue and Yellow.
- The pictures come from Glitch Lab's renderer, which redraws a screen from the game's data alone and matched 17 real frames pixel for pixel. A few tiles on Indigo Plateau and Route 23 are read from video memory, which changes as you play, so those tiles can look different in a real visit.
- From the code only, not played: that Fly and Teleport work inside these Glitch Cities and that Escape Rope and Dig do not.
- Both Yellow hardware paths. Yellow checks at power-on whether it is on a Game Boy or a Game Boy Color and runs extra color code on the Color. Every Yellow result on this page was run both ways (2026-11-05): the route, all 21 Glitch Cities, every walkable area and every exit came out the same on both.
Questions
What is Glitch City in Pokemon?
Glitch City is a scrambled area you can walk into in Pokemon Red, Blue and Yellow. It is a real map, loaded correctly, but the game takes your coordinates and its screen pointer from four wrong bytes, so the screen shows the cartridge's own code and data drawn as map blocks.
Does Glitch City work in Pokemon Yellow?
Yes. The NO, save and reset method works in Yellow just as in Red and Blue, and the same 21 maps give a Glitch City in Yellow, though what most of them look like is different. Only the poisoned blackout method is fixed in Yellow.
Is Glitch City safe? Can it delete my save?
The Safari Zone Glitch Cities do not damage your save by themselves: they write nothing outside the map's memory, and a game saved inside one loads back exactly. The danger is getting stuck. In most of them you cannot take a step, so save outside first and carry a Pokemon with Fly or Teleport. Walking off Route 6's west edge crashes the game.
How big is Glitch City?
It is finite. Your coordinates are single bytes, and the game loads another map when one reaches 255 or the first value past the real map's edge, so each Glitch City is a box. The largest are 234 by 236 coordinates, 123 by 123 blocks of screen. The most you can walk on is 146 coordinates, on Cycling Road; in most of them you can stand only on the tile you arrive on.
Where to go next
Glitch City is one of a family of glitches where the game reads memory it should not. Here are its closest relatives.
Go deeper: the Gen 1 battle engine | browse the Glitchhouse.
Related specimens
Go deeper: MissingNo. | Super Glitch | browse the Glitchhouse.