Snake
Steer the snake to the food, grow longer and avoid the walls and your own tail. Arrow keys, swipes or on-screen buttons.
Desktop: arrow keys to steer, Space to pause. Mobile: swipe on the board or use the buttons.
How to play
Guide the snake to the red food. Each piece adds one segment to the snake and 10 points to your score.
Avoid collisions
Running into a wall or into the snake's own body ends the game.
Saved on your device
Your best score is stored in this browser only and never uploaded.
How to play Snake
The game takes place on a square board of 18 by 18 cells. Your snake starts three segments long in the middle of the board, and one piece of red food sits on a random free cell. The snake moves forward on its own, one cell at a time, about nine cells per second. You cannot stop it; you can only turn it. Each time the head reaches the food, the snake grows by one segment, you score 10 points and a new piece of food appears somewhere the snake is not.
The game ends when the head hits one of the four walls or runs into any part of the snake's body. Moving into the square the tail is just leaving is allowed, because the tail moves out of the way on the same step. In the rare case that the snake fills the entire board, you win.

Controls on desktop and mobile
- Starting: press Start, press an arrow key or swipe on the board. When you start with an arrow key or swipe, the snake starts moving in that direction.
- Keyboard: use the four arrow keys to turn. While a game is running the arrows steer the snake and do not scroll the page. When no game is running they only start a game if the board is on screen, so you can still scroll down to read this guide.
- Touch: swipe on the board in the direction you want to go. The board does not scroll the page while your finger is on it. On narrow screens, arrow buttons below the board give you another way to steer.
- Pause: press Space to pause and resume. The game also pauses automatically if you switch to another tab or window, so you never lose a run by accident; press Resume, Space or an arrow key to continue.
Responsive turning
You cannot reverse straight back into your own body, so pressing the opposite direction is ignored. Quick turns are remembered: if you press up and then left in quick succession, the snake turns up on the next step and left on the step after, rather than losing the second press. Up to two turns are queued at once, which makes tight U-turns along a wall reliable.
Scoring
Every piece of food is worth 10 points, so your score is always ten times the number of pieces eaten. The snake moves at a constant speed, which keeps the challenge about planning space rather than reflexes. Your best score is saved in your browser's local storage on this device and is shown next to the current score.
Strategy tips
- Use the edges early. While the snake is short, travel along the walls and keep the middle of the board open for later.
- Do not head straight for food. With a long snake, the direct route often closes off a pocket you cannot escape. Think about where the head will be after you eat, not just how to reach the food.
- Sweep in rows. A reliable long-game pattern is to move back and forth across the board in parallel lines, like mowing a lawn. It is slow but leaves the snake's body in tidy rows.
- Follow your tail. When in doubt, chase your own tail: the cell it vacates is always safe on the next step.
- Use pause wisely. If the board gets crowded, press Space and study the layout before deciding which way to turn.
A short history
The idea behind Snake goes back to the 1976 arcade game Blockade, in which players steered lines that left a growing trail behind them. Many home computer versions followed, and the game reached a huge audience when Nokia included a version called Snake on its mobile phones from 1997. Since then countless variations have appeared on almost every gaming platform. This page is an independent version with classic rules: walls end the game, and the snake grows with each piece of food.
Frequently asked questions
How do I control the snake?
Use the arrow keys on a computer, swipe on the board on a touch screen, or tap the on-screen arrow buttons that appear below the board on narrow screens.
What makes the game end?
The game ends when the snake's head hits a wall or any part of the snake's own body. Moving into the cell the tail is just leaving is safe.
Can I pause the game?
Yes. Press Space to pause and resume. The game also pauses automatically when you switch to another tab or window.
Why does the snake ignore the opposite arrow key?
Turning straight back would make the head run into the body immediately, so a reverse turn is ignored. Turn twice, for example up and then left, to change direction safely.
Does the snake get faster?
No. The snake moves at a constant speed of about nine cells per second, and the game gets harder because the snake gets longer and the free space shrinks.
Is my best score saved?
Yes. Your best score is saved in your browser's local storage on this device only. It is not uploaded anywhere.
Is Snake free?
Yes. It is free to play in your browser with no download, no signup and no account.