2048 Game
Play the classic 2048 sliding tile puzzle in your browser, with undo, a best-score tracker and full keyboard play.
Slide the tiles with the arrow keys, WASD or the direction buttons.
- Score
- 0
- Best
- 0
- Moves
- 0
- Highest tile
- 0
How it works
2048 is played on a 4×4 grid. Every move slides all tiles as far as they go in one
direction; two tiles with the same number that collide merge into one tile of double the
value, and the merged value is added to your score. A tile that has just been created by a
merge cannot merge again in the same move, and merges resolve from the far edge inwards —
so a row of 2 2 2 2 slid left becomes 4 4, never a single 8. After
any move that actually changes the board, one new tile appears in a random empty square: a 2
nine times out of ten, a 4 the rest of the time. Reach the 2048 tile to win; you can keep
playing for 4096 and beyond. The game ends when the grid is full and no two neighbours match.
Every square is labelled for screen readers and the score, move count and game state are
announced through a live region, so the whole game works from the keyboard: press Tab to
reach the board, then use the arrow keys or W A S D. On a touch screen you can
swipe across the board, and the four direction buttons always work with a mouse, a tap or the
keyboard. Undo takes back the last move, including the tile that spawned after it, and your
best score is remembered in this browser only (localStorage) — nothing is sent
anywhere. New tiles come from a seeded generator, so adding ?seed=42 to the URL
replays the exact same game. For practice or puzzle setups you can load a position with
?board= followed by 16 comma-separated numbers (row by row, 0 for an empty
square) and add &spawn=off to stop new tiles from appearing. Everything runs
in your browser: no signup, no ads, no uploads.
Frequently asked questions
What are the rules of 2048?
Every move slides all tiles as far as they go in one direction. Two touching tiles with the same number merge into one tile of double the value and that value is added to your score. A tile created by a merge cannot merge again in the same move, and merges resolve from the far edge inwards, so a row of 2 2 2 2 slid left becomes 4 4 rather than a single 8. After any move that changes the board a new tile appears in a random empty square — a 2 nine times out of ten, otherwise a 4.
How do you win 2048, and can you keep playing after that?
You win the moment a 2048 tile appears on the board. The game tells you and then lets you carry on for 4096, 8192 and beyond. The game only ends when the grid is full and no two neighbouring tiles match, so there is no legal move left in any direction.
Can I play 2048 with the keyboard, and is my score saved anywhere?
Yes. Press Tab to focus the board, then use the arrow keys or W, A, S and D; every square is labelled for screen readers and the score and game state are announced through a live region. On a phone you can swipe, and the four on-screen direction buttons always work. Your best score is stored in this browser only via localStorage — nothing is uploaded, and Reset best clears it.