Play Rubik's Cube Online (3x3)
Play a Rubik's cube online in 3D, free and with nothing to install. This cube simulator turns a virtual 3x3 with your mouse, a finger or the keyboard; scramble it, time your solve and hand any position to the solver.
Have a cube in your hands? Solve my physical 3×3 cube
- Moves
- 0
Your moves show up here.
Drag a face to turn it, drag the background to rotate the cube. Keyboard: U D L R F B turn a face, add Shift to turn it counter-clockwise, Backspace undoes.
How to play the Rubik's cube online
-
Scramble the virtual cube
Press Scramble for a random position, a random-state scramble like the ones used at official competitions, or start from the solved cube and mix it by hand.
-
Turn a layer with the mouse or a finger
Drag across a sticker in the direction you want it to go. A drag that starts on a middle-row sticker turns the middle slice; a drag on the background rotates the view.
-
Turn faces with the keyboard
Press U, D, L, R, F or B for a clockwise quarter turn of that face, add Shift to turn it counter-clockwise, and press Backspace to undo.
-
Finish it or ask the solver
The counter shows how many moves you have made. If you get lost, Solve this state opens the exact position in the solver with a short solution.
Virtual cube controls: mouse, touch and keyboard
| Action | Mouse or touch | Keyboard |
|---|---|---|
| Turn an outer face | Swipe across one of its stickers, in the direction the sticker should travel | U, D, L, R, F, B; with Shift for counter-clockwise |
| Turn a middle slice | Start the swipe on a sticker in the middle row or column | – |
| Look at another side | Swipe the empty space around the cube, or use two fingers | – |
| Take back a turn | The Undo button | Backspace |
The cube reacts to the direction of a swipe, not its length: a short, clear movement across one sticker makes exactly one quarter turn, and a plain tap never turns anything, so resting a thumb on the cube is safe. If swiping on a small phone feels fiddly, the move buttons turn each outer face either way with a tap. Reset returns to solved and clears the move history. Keys are ignored while you type in a text field or hold Ctrl, Cmd or Alt, so browser shortcuts keep working.
A 3D cube simulator that behaves like the real 3x3
The game is the same as with a cube in your hands: scramble it, then turn the layers until each of the six faces shows one color again. This simulator models the real puzzle piece by piece. Its 26 visible pieces are 8 corners, 12 edges and 6 centers, and the centers never move relative to each other, so white always sits opposite yellow, red opposite orange and green opposite blue. That gives the same 43,252,003,274,489,856,000 positions as a physical 3x3, and every one can be solved in 20 moves or fewer.
Scramble picks one of those positions at random, each as likely as any other. Official competitions scramble the same way, so you never get a lucky, half-solved start. Middle-layer turns work too and are recorded as M, E and S.
The cube is drawn as plain vector graphics rather than with a 3D engine, so it appears with the page and stays sharp when you zoom in.
Timing a solve on the virtual cube
Tick Time my solve before you begin. After you press Scramble, the clock waits for your first turn, so you can study the cube first, a little like the inspection time at competitions. It stops by itself the moment every face shows a single color, and the result reads, for example, “Solved in 84 moves and 1:12.40”. Undo keeps the clock running, so a mistake costs time but never ruins the attempt.
Turning a cube with a mouse or a finger is slower than turning a real one, so compare these times with each other rather than with your hand solves. To time your own cube, with a new scramble for every solve and Ao5 and Ao12 averages, use the Rubik’s cube timer.
Every key is a notation letter
Each letter names a face: U (up), D (down), L (left), R (right), F (front) and B (back). A plain letter turns that face a quarter turn clockwise as you look straight at it, and Shift turns it back, just as an apostrophe does in R′. Reading an algorithm and typing it are therefore the same skill: R U R′ U′ is R, U, Shift+R, Shift+U.
Keys turn one face at a time; there is no box for pasting a whole sequence. Under the cube, Moves counts every turn and the move list shows each one as a notation chip, newest last, so you can check that a key or a swipe did what you meant. The Rubik’s cube notation guide shows every letter in 3D, along with slices and whole-cube rotations.
Stuck? Send the position to the solver
Everyone gets lost halfway through a solve at some point. Solve this state opens the 3x3 Rubik’s cube solver with the exact position of your virtual cube already filled in, so there is nothing to paint. There you get a solution of about 20 moves, or you can switch to the beginner method to see the rest of the solve in seven stages, each with an explanation.
The solver’s Play with this cube button brings the position back here, and its Copy share link keeps it for later. To stop needing the solver at all, follow how to solve a Rubik’s cube step by step: its practice links open each stage’s position right here on the virtual cube.
2x2 to 5x5 and three twisty puzzles, one click away
The 3x3 is one of seven puzzles you can play on this site. For something quicker, the 2x2 Rubik’s cube online has only corners to solve. For more layers, play the 4x4 Rubik’s cube online or the 5x5 Rubik’s cube online, where you build the centers and pair the edges before finishing like a 3x3. Three puzzles change the shape instead: Pyraminx online, a four-sided pyramid; Megaminx online, a twelve-sided 3x3; and Skewb online, which turns around its corners. Not sure which to try next? The guide to the types of Rubik’s cubes compares all seven, from easiest to hardest.
Rubik's cube online: frequently asked questions
Is there a Rubik's cube simulator available?
Yes, this page is one: a free 3D Rubik's cube simulator that runs in the browser of a phone, tablet or computer. It scrambles, counts moves, times your solve and sends any position to a solver. The same site has simulators for the 2x2, 4x4, 5x5, Pyraminx, Megaminx and Skewb.
Does a 1000x1000 Rubik's cube exist?
Not as a real puzzle. The largest cube ever built by hand is a 33x33x33, and mass-produced cubes stop at about 21x21x21, because bigger ones need impossibly small pieces. Much larger cubes exist only as software. The simulators on this site go up to 5x5.
Is the online Rubik's cube free?
Yes, completely. The virtual 3x3 runs in the web browser, so there is no app to download, nothing to sign up for and no limit on how many scrambles you play. The timer, undo, custom colors and the hand-off to the solver are all included.
Is playing Rubik's cube online good for your brain?
It exercises the same skills as a real cube: picturing how a turn moves pieces you cannot see, remembering sequences of moves and planning a few steps ahead. Evidence that puzzles raise general intelligence is weak, so treat it as a good mental workout rather than a proven brain booster.
Can I change the sticker colors?
Yes. Colors opens six color pickers, one per face, so you can match the shades of your own cube or get more contrast if two colors look alike to you. The choice is saved in this browser and applies across the site, including the solvers and the guides' move demos. Reset to default colors undoes it.
What is the cube game with colored squares called?
It is the Rubik's Cube, invented in 1974 by the Hungarian architect Ernő Rubik and sold worldwide since 1980. The standard version is the 3x3 on this page; generic versions are often called speed cubes or magic cubes. This site is independent and not affiliated with the Rubik's brand.