how to hack a coke machine

  1. 1
    Find a machine that has an LED screen and is by "Royal Vendors". There should be a label on both sides of the machine. The small screen will typically scroll a message such as "Ice Cold Coca Cola." If the machine's LED display simply displays the price, the steps below may not work.


  2. 2
    Enter the access code by using the drink selection buttons. The default access code is 4, 2, 3, 1, but the buttons aren't numbered. They will either say nothing or have pictures of Coke, Diet Coke, Sprite, and other Coca-Cola products on them.
    • If the buttons are in rows, they should be numbered 1 through 4 from left to right.
    • If the buttons are in a column, button 1 should be the top one.
  3. 3
    Enter history codes to find information about the machine. Again, this will vary slightly depending on the machine. Experiment with different buttons to see various information.
    • On machines with two panels of six buttons on each side, press 1 to see the total lifetime sales, 2 for the total lifetime items sold, 3 for a breakdown of items sold of each selection, 4 for a breakdown of cash generated for each selection, and 5 for the machine's internal temperature.
  4. 4
    Exit the menu. On some machines, the 6 button will close the menu; on others, pressing the select or coin-return button works. If you’re not sure which button to press, leave the machine alone; after a while without input, all machines should return to the normal menu.




  • This only works for Coke machines, which may sell products such as Barq's Root Beer, Sprite, Dasani, Evian, Fanta, Fresca, Frutopia, Full Throttle, Powerade, Hi-C, Minute Maid, Nestea, Odwalla, Mr. Pibb, Planet Java, Seagram's Ginger Ale, Simply Orange, Sparkletts, or Tab in addition to Coke and Diet Coke.
  • In general, these are the only options you can access without having the door unlocked and open. Different machines may list these options in somewhat different formats, so experiment a bit to learn what each new one does.
  • Vending machine owners or service people have the option to change the access sequence from 4231 to some other combination of buttons, but they rarely do. This is probably because having one code makes it easier for anyone to service all the machines along a route. It may also be because the information you can access through the external menu with the door closed is limited and fairly harmless.
  • There are several videos available on the Internet that show people using this hack. Many claim to be able to change prices or get a free drink, but the videos don't actually show them doing so.
  • In order to get to the same menu in a machine that sells Pepsi products, simply enter 1, 3, 2, 4. All the menu options should be the same. However, keep in mind that this does not work on all Pepsi machines.




  • Please note that this article does not encourage you to steal drinks from drink machines. Stealing is illegal.
  • Some machines may require you to enter the code twice, so don't despair if you don't get to the menu immediately.
  • Several machines display a list of more codes, but most have the dispense options disabled.
  • On some machines, pressing the coin-return button will only display the machine's inner temperature, not exit the menu.
  • Do not do this if there's a line behind you, as people may get upset waiting for you.
  • Coca-Cola has distributed new firmware to their vendors that would render these instructions unusable. That means that these instructions will only work on older, un-updated models.
  • Do not hack the machine when others are around or in front of a camera.


EditRelated wikiHows


EditSources and Citations

  • RootSecure PDF copy of a service manual for one particular model of Coke machine.
  • RoyalVendors Service Page of Royal Vendors, makers of almost every vending machine you see today. This page has links to all of Royal's product manuals. The G3 is the one you'll encounter most often in the wild.

Articles for You to Write

Here is a list of suggested articles that have not yet been written. You can help by researching and writing one of these articles. To get started writing one of these articles, click on the red link of a title below.


If you aren't encouraging us to steal, why tell us how?


ask wikihow


Does it tell you how to get a coke machine to give you a life?


This is illegal and i am not going to try this with any Vending Machine. By the way , It's good to know the information about hacking the soda machines.