Cube Solver

Online NxN Rubik's Cube Solver and Simulator

Start

Pick a cube size

Online Rubik's Cube, 4x4x4 and other NxNxN cube solver and simulator. Set up a scramble by rotating the faces of the puzzle or by using the color picker to find the rotations leading to the solution. Apply a sequence of moves, perform a random scramble or reset to the solved state with a click of a button. First select the desired cube size in the menu: 2x2 Pocket Cube, 3x3 Rubik's Cube, 4x4 Revenge, 5x5 Professor's Cube, 6x6x6 up to 15x15x15 cube to get started.

Cube simulator

Play with the cube online by dragging the faces and layers with your mouse, or swipe the screen on a touch device. Rotate the whole cube by dragging outside of it. Scroll to zoom in and out.

Apply a random scramble with the Scramble button, then try to find the solution yourself by dragging the faces or using the keyboard:

F f U u R r B b L l D d

Lower case turns the face clockwise, upper case counterclockwise. The left and right arrow keys step through the solution, or undo and redo your own moves. While the color picker is open, the number keys 1 to 6 select a color.

Open the Moves menu to turn any single layer with a button, or to type a sequence in standard notation, for example F R2 U'. A prime turns anticlockwise and a 2 is a half turn. Lower case or a w suffix makes it a wide turn, f or Fw, and a leading number reaches a deeper layer, 2F.

Cube solver

Those who cannot solve the Rubik's Cube might need some help. Enter a scrambled cube by hand, with the scramble button or with the color picker, and let the program find the solution for you.

A 3x3 is solved with Kociemba's two-phase algorithm, which finds a solution of about 20 face turns and never more than 24. A 2x2 Pocket Cube is solved optimally: every solution is a shortest solution, 11 turns at the very most. The first solve of a session spends a second or two building its lookup tables, and every solve after that is instant.

The 4x4x4 and larger cubes are solved by grouping the centers and edges first and then finishing the puzzle like a 3x3, which takes roughly 600 rotations on a 4x4x4. Press play and watch the animation, or click through the move list one move at a time.

If you want a second opinion, the Ruwix solver is another good online solver worth a look.

Color picker

Open the color picker to enter the cube you are holding. Choose a color, tap the stickers to paint them, then press Check to validate the configuration and Solve to work out the moves.

Patterns

Add a new challenge to the game by making pretty Rubik's Cube patterns. Under the Patterns menu, select an effect and the algorithm that produces it is shown on screen.

Visit Online Cube, another cube simulator, if this one does not render correctly on your device or you have any difficulty using it.

Start