The Konami Code's Long Trip From Gradius to Web Pages
Up, up, down, down, left, right, left, right, B, A. A surprising number of people who have never owned a Konami game can recite that sequence.

Up, up, down, down, left, right, left, right, B, A. A surprising number of people who have never owned a Konami game can recite that sequence. It has been typed into consoles, keyboards, phone apps and websites for close to forty years, and it still turns up as a hidden switch in places that have nothing to do with the game it came from.
Most retellings of its history are copied from one another, and a few details drift with each copy. So for this piece I tried to separate what the record supports from what has hardened into legend, and to follow the code from a programmer's private shortcut to one of the most reused secrets in software.
A tester's shortcut that nobody removed
The story that holds up best comes from Kazuhisa Hashimoto, a Konami programmer who worked on the home console port of the arcade shooter Gradius, released for the Famicom in 1986. By his own account in later interviews, he found the game too hard to play through while testing it. So he added a button sequence that handed his ship the full set of power-ups, letting him reach later stages quickly.
The sequence was meant for him. It stayed in the shipped game, either because removing it was forgotten or because nobody saw a reason to. Players found it, magazines printed it, and a debugging tool became a playground legend.
Hashimoto died in 2020, and the tributes that followed were a reminder of how odd his legacy is. Very few programmers are remembered for a shortcut they wrote for themselves, and fewer still for one that outlived nearly everything else they shipped.
Contra and the thirty lives
If Gradius created the code, Contra spread it. The North American NES release of Contra in 1988 let players enter the same sequence on the title screen to start with thirty lives instead of three. Contra was brutally hard and usually played with a friend on the couch, and thirty lives turned it from a wall into something a pair of ten year olds could actually finish.
That is the version most Americans of a certain age remember, and it explains why the code is often called the Contra code in the United States. The code itself did not change. Its reputation did, because it was now attached to a game people talked about at school.
Over the following years Konami reused the sequence across many of its titles, sometimes for power-ups, sometimes for extra lives, sometimes for a joke. It became something close to a company signature.
When the code turned against the player
Here is the detail I find most interesting, because it shows a studio playing with players' expectations. In Gradius III, according to the commonly told version, entering the familiar sequence makes your ship blow up instead of powering up. The working version swaps the left and right presses for the L and R shoulder buttons of the Super Nintendo controller. I have seen that account in enough independent places to trust its outline, though I have not tested it on a cartridge myself.
That trick only works because the code had become so famous. A secret that everyone knows is no longer a secret, so the developers turned it into a trap for the people who thought they knew the secret. It is the same instinct behind many of the jokes we covered in how easter eggs survive years after a game ships: once a hidden thing is common knowledge, the next move is to subvert it.
From cartridges to web pages
The code escaped games entirely once web developers grew up with it. Listening for the sequence in a browser is a short script: record the last ten keys pressed, compare them to the list, and trigger something when they match. Because it is so easy to write, the Konami code has been hidden on corporate sites, news pages, documentation and portfolio sites, usually triggering confetti, a retro sound, or a small animation.
It also returned to big games in new forms. During Fortnite's black hole event in October 2019, when the game was unplayable for nearly two days, players discovered that entering the Konami code on the loading screen opened a small hidden arcade style shooter. Thousands of people found it within hours, which is about the fastest any hidden thing in a game has ever been shared.
If you go looking for it on websites today, expect most attempts to do nothing. The code is a fashion that comes and goes with redesigns, and many of the famous web examples have been quietly removed. That is a recurring frustration in this kind of detective work, and our guide to finding easter eggs in games has a section on telling whether a secret has been patched out or never existed.
What the record does not settle
Some popular claims are harder to support. You will read that the code appears in "hundreds" or "over a thousand" games. I could not find a reliable count, and lists online mix genuine uses with fan mods and look-alike sequences. I would treat any specific number with suspicion.
You will also read confident accounts of exactly why the code survived into the retail Gradius. Hashimoto described forgetting to remove it in some tellings, but memory decades later is not a design document. The honest answer is that we know who wrote it and roughly why, and the rest is likely but unproven.
That gap between what is known and what is repeated is common in game history. We followed a similar trail in the hidden secrets that took players years to find, where several famous discoveries turned out to have messier origins than their legend.
A few places to try it yourself
The best way to understand why this code lasted is to feel it work. Some options that are easy to reach:
- Contra in a legal retro collection, such as the Contra Anniversary Collection released in 2019, where the thirty lives code still works on the original NES version.
- Any collection containing the original Gradius, where the power-up code works during pause rather than on the title screen.
- Your own browser. Pick a website you suspect of having a playful developer team, type the sequence with the arrow keys, then B and A, and see if anything happens.
For the hardware side of playing these games in their original form, the repair shops in keeping decades old arcade cabinets alive are where much of this history physically survives.
Try one experiment this week
Pick a single retro collection you already own or can borrow, look up which of its games originally supported the code, and test each one. Note which work on the title screen, which work on pause, and which do nothing. You will end up with a small, accurate list of your own, and you will understand why careful collectors trust their own tests over the lists circulating online.
More in Games
Games
How Players Cracked the Invented Alphabets Hidden in Games
Some games print a sign in a language nobody speaks, and dare you to read it. Most players walk past.
Games
How Online Game Maps Hide Their Best Secrets in Plain Sight
The secrets players hunt for years are rarely buried under some impossible sequence.
Games
How Online Game Localization Hides Jokes Across Languages
Playing a game in one language, you see one version of its humor, but a game translated into a dozen languages is really a...