← Back to all games

2048

Slide tiles, merge matching numbers and chase the 2048 tile — the viral puzzle that became H5 gaming's Hello World.

Arrow keys or WASD; swipe on mobile. Matching numbers merge when they collide. Open in new tab ↗

Source

gabrielecirulli/2048

License

MIT

Stars

★ 13,367

Size

~10-200KB

Tech

原生JS · CSS3

Deploy

Static

How to play

Gabriele Cirulli's original 2048 — the game that kicked off a hundred clones. Written in vanilla JavaScript with zero build step, MIT-licensed, and still the reference implementation for puzzle-game clarity.

Arrow keys or WASD; swipe on mobile. Matching numbers merge when they collide.

Integration notes

Re-skinning costs almost nothing: change the CSS palette and the title and it becomes your own brand. Touch events ship built in with smooth gestures — the single best opener for driving traffic.

#原生js#css3#keyboard#touch

FAQ

Is 2048 free to play?

Yes. 2048 is completely free, runs in your browser, and needs no install or account.

Is 2048 open source?

Yes. It hosts the original open-source code by gabrielecirulli, released under MIT. Source: https://github.com/gabrielecirulli/2048

How do you play 2048?

Arrow keys or WASD; swipe on mobile. Matching numbers merge when they collide.

More like this