DevTools Logo

2048

2048

Slide tiles, merge equals and reach 2048 — your best score stays in this browser.

Progress saves to this browser only — no account, no server.
Score
0
Best
0

Swipe or use arrow keys / WASD. Every move is saved to this browser automatically.

About this game

2048 is the tile-sliding puzzle that became a worldwide habit: slide the whole 4×4 board in one direction, and every tile travels until it hits a wall or another tile. When two tiles with the same number collide they merge into a single tile worth their sum — 2+2 becomes 4, 4+4 becomes 8 — and a fresh 2 (occasionally a 4) spawns on a random empty square. Merge your way up to the 2048 tile to win, then keep going: 4096, 8192 and beyond are all reachable with a disciplined corner strategy.

This version is built to be played anywhere. On phones and tablets the board responds to swipe gestures in all four directions, with on-screen arrow buttons as a fallback; on desktop the arrow keys and WASD both work, and the page never scrolls mid-swipe because the capture area is limited to the board itself. A one-step undo rescues a wrong swipe, and the game-over detection is exact — the overlay appears only when no slide and no merge is possible.

Everything persists locally. The board, score, undo state, best score and play count are written to your browser's local storage after every move, so you can close the tab mid-run and resume exactly where you left off. The privacy strip on the page is literal: no account, no server, no analytics of what you play — clearing the site's data (or pressing Reset saved data) removes every trace.

Under the hood the game runs on a pure, deterministic engine: slide and merge logic are plain functions with injected randomness, which is what makes the automatic saves safe — a restored board is always exactly the board you left behind.

How to use

  1. Slide the board

    Swipe up/down/left/right on touch, or press the arrow keys / WASD. All tiles slide together; nothing moves if a direction changes nothing.

  2. Merge equal tiles

    Two identical numbers combine into their sum. Chains matter: keeping tiles in descending order from your corner sets up multi-merges in one swipe.

  3. Use undo and new game

    Undo steps back exactly one move. New game deals a fresh board — your best score and play count survive it.

  4. Win and keep going

    Creating the 2048 tile shows the win screen; choose Keep going to chase 4096+ or New game to restart. Reset saved data erases everything stored locally.

Use cases

A two-minute break

No loading, no signup, no ads — open the page and play one run on any device, then close it mid-game and resume later.

Number-sense practice

Powers of two, planning several moves ahead and spatial packing make 2048 a quiet arithmetic workout for kids and adults alike.

Strategy study

The corner-and-chain strategy (pin the largest tile, build a descending snake) is a classic exercise in greed vs. trade-offs — fun to test and refine.

Offline-friendly play

Once the page is loaded the game needs no network at all, and the board survives tab closes and browser restarts via local storage.

Common mistakes

Mistake:Swiping in all four directions equally

Fix:Pick one corner for your largest tile and favor the two directions that keep it there; the third direction is a rare escape hatch and the fourth is an emergency only.

Mistake:Chasing merges and letting small tiles scatter

Fix:Keep small tiles adjacent to their equal partners — a scattered 2 is dead weight, an aligned 2 is the start of a chain.

Mistake:Ignoring the undo after a misclick

Fix:Undo restores the exact previous board and score; use it immediately rather than playing on from a ruined position.

Frequently asked questions

References & standards