2048

Slide the tiles with the arrow keys or a swipe. Two tiles with the same number push into one with the next number up, and every move drops a new tile onto the board. Get to 2048. The rule that makes it a puzzle rather than a shuffle is that a tile can only merge once per move, so a row of four 2s becomes two 4s and never an 8. There is a one-step undo, because the only way to lose this by accident is a mis-swipe.

Arrow keys or swipe. Two of a kind make the next number up.

Score 0

Best 0

Arrow keys or WASD to slide, Z to undo one move. On a phone, swipe across the board. The best score is kept on this machine only, in this browser, and goes no further.

Frequently asked questions

Is anything sent to a server?

No, and there is no server to send it to. The site’s security policy sets connect-src ‘none’, so the browser blocks network requests from these pages, so the page could not report a score even if the code tried. Your best is kept in this browser on this machine and nowhere else.

Why did four 2s in a row only make two 4s?

Because a tile can merge once per move and no more. That single rule is what makes 2048 a puzzle: if merges cascaded, a full row would collapse to one big tile and the board would never fill up. The same rule is why 4 4 8 slides into 8 8 rather than 16.

Is the undo cheating?

It goes back one move, and it is there for the swipe that went the wrong way rather than for the decision you regret. Anything deeper would be a different game. If you would rather not have it, do not press it: the score is the same either way, and neither of us is checking.

Do I have to stop at 2048?

No. Reaching 2048 is announced and the game carries on, which is what anyone who has got there actually wants. 4096 and 8192 are both possible on a four by four board; past that you are fighting the arithmetic rather than the game.

Does it work offline?

Once the page has loaded, yes. Nothing on it touches the network while you play, so flight mode changes nothing at all.

Can I play it with a keyboard only?

Yes. Tab to the board and use the arrow keys or WASD, and Z to undo. The board takes focus and only swallows the arrow keys while it has it, so the rest of the page still scrolls normally.

Is it really random which tile appears?

A new tile is a 2 nine times out of ten and a 4 otherwise, dropped on a square chosen from the empty ones. The generator is the same seeded one the prize draw tools on this site use, seeded from your operating system at the start of each game. `Math.random` is not used anywhere here.