Interactive Puzzle Lab · Visual Algorithms

Rubik's Cube Solver

Paint the 54 stickers of your 3×3 cube, tap Solve, and follow every move in an interactive 3D preview. Or scramble a virtual cube and watch it return to solved.

3×3 cubeStep-by-step solutionRuns in your browser

1. Enter your cube's colours

Select a colour, then tap stickers in the unfolded cube net. The middle sticker on each face identifies that face's colour. All six centres must be different.

Reading the net: U = Up, R = Right, F = Front, D = Down, L = Left, B = Back. Keep the same physical cube orientation while entering faces. Face stickers are read left-to-right, top-to-bottom.

Ready. Enter your cube's stickers or use Random scramble to try a puzzle.

2. Explore in 3D

Drag to rotate the cube. The preview and unfolded net update when you step through a solution.

Drag on desktop or swipe on mobile ·

3. Follow the solution

After solving, press Next for the next face turn, or play the whole sequence automatically.

No solution yet

Each move rotates one face. ' means counterclockwise and 2 means a half-turn, viewed directly toward that face.

01 · Match the centres

Hold your cube with a chosen front face facing you and the up face at the top. Paint the six centre stickers first to match your real cube. The solver uses their colours to identify faces.

02 · Enter every sticker

Use the cube net to enter the remaining colours. For the Back, Right, Left and Down faces, look straight at that face with its shared adjacent Up/Front orientation maintained. Each of the six colours must occur exactly nine times.

03 · Solve and follow

Tap Solve my cube. Impossible combinations, including flipped edges or twisted corners, are rejected. Follow the lettered moves on your physical cube, one move at a time.

Understand the moves and the algorithm

The solver uses a two-phase search algorithm to find a relatively short path from the current cube state to the solved state. Its search tables are prepared in a background worker so the page remains responsive. It validates sticker counts, centres, cubie identities, twists, flips and permutation parity first.

U · UpR · RightF · FrontD · DownL · LeftB · Back R · clockwise 90°R' · counterclockwise 90°R2 · rotate 180°

A turn's direction is always defined while looking directly at that face. Unlike a beginner-method tutorial, the computed solution is an algorithmic move sequence, not separate beginner stages. The engine is the MIT-licensed open-source cubejs project, included locally.