The Glitchhouse · Pokemon Red, Blue and Yellow

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.

By GardenFlouer · tested by running the game's own code, 30 October 2026 · part of The Glitchhouse

The short answer

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.

Played in all three games. The NO is what arms it: the worker keeps his next line in a byte the save does not keep, so after the reset he forgets you were leaving. Skip the NO and he asks "Leaving early?" again after the reset. Try it on an emulator with save states first. On a cartridge, the method itself saves inside the Safari Zone, so bring a Pokemon with Fly or Teleport and never save inside a Glitch City you cannot leave.

The steps, in plain text

  1. Stand below the Safari Zone gate in Fuchsia City with at least 500 and a Pokemon that knows Surf.
  2. Walk in and up to the worker. Answer YES and pay. He walks you into the Safari Zone.
  3. 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.
  4. Now, standing in the Safari Zone, open START and choose SAVE. Then reset (A+B+START+SELECT, or switch off and on).
  5. 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.
  6. Walk south to Route 19, Surf west onto Route 20, and keep moving until the steps run out.
  7. 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)

  1. 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.
  2. 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.
  3. 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.

  1. 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.
  2. 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".
  3. 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.
Pallet Town's warp-to table, as the gate exit reads it
EntryWhat is stored thereRead as a door
0Door 1, your housearrive at x 5, y 5
1Door 2, your rival's housearrive at x 13, y 5
2Door 3, Oak's labarrive at x 12, y 11
3past the end: Pallet Town's block ids 0 to 3never used
4past the end: Pallet Town's block ids 4 to 7, $4F $0B $50 $52screen pointer $0B4F, y 80, x 82
Pallet Town has 3 doors, so only entries 0 to 2 are real. Entry 4 lands on bytes 4 to 7 of Pallet Town's own block data. As a door, that is a screen pointer of $0B4F, which points into the game's code, and a position of x 82, y 80 on a map only 20 by 18 coordinates big.

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).

Each picture is the whole area your coordinates can cover, plus the screen's margin around it, drawn from the author's own cartridges by the same renderer the tests used. Green: the coordinates you can stand on. Red outline: where you arrive. Orange: the map's real doors, at their real coordinates. Edge lines: blue loads another map, red loads map $FF and crashes; a solid line is one you can actually walk through.
The screen you arrive on in Pallet Town's Glitch City, Pokemon Red: scrambled map blocks at x 82, y 80.Pallet Townx 82, y 80 · 1 walkable The screen you arrive on in Indigo Plateau's Glitch City, Pokemon Red: scrambled map blocks at x 39, y 28.Indigo Plateaux 39, y 28 · 1 walkable The screen you arrive on in Route 1's Glitch City, Pokemon Red: scrambled map blocks at x 49, y 10.Route 1x 49, y 10 · 10 walkable (Yellow 1) The screen you arrive on in Route 3's Glitch City, Pokemon Red: scrambled map blocks at x 44, y 44.Route 3x 44, y 44 · 1 walkable The screen you arrive on in Route 4's Glitch City, Pokemon Red: scrambled map blocks at x 42, y 87.Route 4x 42, y 87 · 1 walkable (Yellow 2) The screen you arrive on in Route 6's Glitch City, Pokemon Red: scrambled map blocks at x 10, y 116.Route 6x 10, y 116 · 99 walkable The screen you arrive on in Route 9's Glitch City, Pokemon Red: scrambled map blocks at x 87, y 43.Route 9x 87, y 43 · 1 walkable (Yellow 11) The screen you arrive on in Route 10's Glitch City, Pokemon Red: scrambled map blocks at x 87, y 87.Route 10x 87, y 87 · 1 walkable The screen you arrive on in Route 12's Glitch City, Pokemon Red: scrambled map blocks at x 41, y 44.Route 12x 41, y 44 · 9 walkable (Yellow 6) The screen you arrive on in Route 13's Glitch City, Pokemon Red: scrambled map blocks at x 15, y 15.Route 13x 15, y 15 · 1 walkable The screen you arrive on in Route 14's Glitch City, Pokemon Red: scrambled map blocks at x 119, y 119.Route 14x 119, y 119 · 42 walkable (Yellow 43) The screen you arrive on in Route 15's Glitch City, Pokemon Red: scrambled map blocks at x 10, y 10.Route 15x 10, y 10 · 13 walkable (Yellow 2) The screen you arrive on in Route 17 (Cycling Road)'s Glitch City, Pokemon Red: scrambled map blocks at x 67, y 67.Route 17 (Cycling Road)x 67, y 67 · 146 walkable The screen you arrive on in Route 18's Glitch City, Pokemon Red: scrambled map blocks at x 49, y 100.Route 18x 49, y 100 · 1 walkable The screen you arrive on in Route 19's Glitch City, Pokemon Red: scrambled map blocks at x 37, y 87.Route 19x 37, y 87 · 1 walkable The screen you arrive on in Route 20's Glitch City, Pokemon Red: scrambled map blocks at x 107, y 107.Route 20x 107, y 107 · 111 walkable (Yellow 83) The screen you arrive on in Route 21's Glitch City, Pokemon Red: scrambled map blocks at x 10, y 10.Route 21x 10, y 10 · 1 walkable The screen you arrive on in Route 22's Glitch City, Pokemon Red: scrambled map blocks at x 87, y 43.Route 22x 87, y 43 · 1 walkable (Yellow 29) The screen you arrive on in Route 23's Glitch City, Pokemon Red: scrambled map blocks at x 54, y 54.Route 23x 54, y 54 · 1 walkable The screen you arrive on in Route 24's Glitch City, Pokemon Red: scrambled map blocks at x 87, y 87.Route 24x 87, y 87 · 1 walkable The screen you arrive on in Route 25's Glitch City, Pokemon Red: scrambled map blocks at x 87, y 87.Route 25x 87, y 87 · 1 walkable (Yellow 5)

All 21 Glitch Cities. Red and Blue share every value here; Yellow differs where shown.

MapReal doorsArrival x, yView pointerArea (coordinates)Walkable, Red and BlueWalkable, YellowEdge you can walk through
Pallet Town382, 80$0B4F234 x 23611none
Indigo Plateau239, 28$1B1A234 x 23611none
Route 1049, 10$0A0A234 x 36101none
Route 3044, 44$2C2C70 x 23611none
Route 4342, 87$572B90 x 23612none
Route 6410, 116$747420 x 2189999west: map $FF (crash)
Route 9087, 43$2A57194 x 236111none
Route 10487, 87$5757234 x 18211none
Route 12441, 44$2C2C234 x 10896none
Route 13015, 15$1C3160 x 1811none
Route 140119, 119$7777234 x 2004243none
Route 15410, 10$0A0A60 x 18132none
Route 17 (Cycling Road)067, 67$654E234 x 144146146none
Route 18449, 100$431850 x 23611none
Route 190 (Yellow 1)37, 87 (Yellow 26, 26)$241B (Yellow $1A29)234 x 200 (Yellow 234 x 54)11none
Route 202107, 107$6B6B154 x 23611183west: Route 19
Route 21010, 10$4E7420 x 9011none
Route 22187, 43$2C2C214 x 236129none
Route 23454, 54$1735234 x 14411none
Route 24087, 87$5757234 x 21811none
Route 25187, 87$5757194 x 23615none

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.

THE BLOCK SET (128 real blocks)
YOUR MAP (tap to place)
Every real map is a tidy arrangement of these blocks: grass here, a house there, a path between. Glitch City uses the same block set, with each cell filled by whatever byte the screen pointer lands on, mostly the game's own code and data. That is why it looks like a town no one designed. Bytes above 127 read past the end of the block set, which gives even stranger blocks.

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.

Tap a block to test its four squares against the game's walkable-tile list.
Only the four marked tiles count, one per square. Green ones are on the overworld's walkable list (pret's Overworld_Coll), red ones are walls. Ledges, water and a few tile pairs add more rules, and the atlas's Walkable overlay follows all of them. In a field of random blocks almost everything is a wall, which is why most Glitch Cities never let you take a step.

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.

Fly and Teleport are the clean way out: the game allows both on an outdoor map, and both load a real one. Escape Rope and Dig never work here, because these maps use the outdoor tileset. On foot, only Route 20 and Route 6 have a way out, and Route 6's is a crash. Fly, Teleport, Escape Rope and Dig are read from the game's code; they were not played.

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.

Glitch City is the game's own code at work, so it should behave the same wherever the game runs. It was tested in two emulators, not on a cartridge or a 3DS. What differs is your safety net: an emulator's save states make it a harmless playground, the 3DS has restore points, and a cartridge has nothing but the save you made before you went in.

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.

wMapViewVRAMPointer = $9800
low byte read as class 0
The pointer starts here at $9800, the top-left of the background map. A step sideways moves it by two tiles and wraps inside its row of 32; a step up or down moves it by 64, two rows, and wraps inside the background map's four pages. The low byte is the class you would fight. Classes past 47 have no real trainer, so the game builds a glitch one, the same family as ZZAZZ. Documented by the Glitch City Research Institute; not tested by Glitch Lab.

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.

Sixteen tile numbers, nothing more. A real map arranges blocks like this one into towns; Glitch City picks which block goes where from bytes that were never a map. Same pieces, no plan.

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.

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.

MissingNo.The coast twinThe same idea one door over: memory read as a Pokemon instead of a map, on the very coast you reach it from. Super GlitchMemory as a moveA move with no name that reads raw memory and writes it back, corrupting the game from the inside. The GlitchhouseEvery specimenThe full collection of Gen 1 glitches, each one decoded from the ROM and made playable.

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

Related specimens

Go deeper: MissingNo. | Super Glitch | browse the Glitchhouse.