Skip to main content
CaseSwitch

Rubik's Cube Solver

Play with 2×2 through 7×7 cubes in 3D, scramble, enter moves, or paint a 3×3 net. Solve in the browser and animate the solution.

Written by the CaseSwitch editorial team. We maintain these tools in the browser so drafts, keys, and images stay on your device.

Last reviewed: 9 November 2026 · How we test these tools

Pick a cube size

Loading 3D simulator…

Drag layers on the cube; orbit by dragging the background. Keys u r f d l b / U R F D L B for turns.
Guide, examples & FAQ(show)

Examples

Solved cube

Input

All faces uniform (default Reset solved)

Output

Solver returns an empty or trivial move list — the cube is already solved.

One-move test

Input

Scramble, note the first move shown in the scramble log, mentally invert it

Output

Solution should undo the scramble in roughly the same number of quarter and half turns.

Invalid pattern

Input

Swap only two edge stickers on the net

Output

Solve reports that the pattern is not a reachable 3×3 cube.

How to use

  1. Hold your physical cube with white on top and green facing you (or use Scramble to practice).
  2. Pick a paint color, then tap each sticker on the net until it matches your cube.
  3. Press Solve cube, then Next move or Copy to follow the algorithm on hardware.

What this tool is for

An online cube simulator helps you practise algorithms, check a physical scramble, or learn patterns without installing software. CaseSwitch combines a 3D twisty player, keyboard shortcuts, classic pattern algorithms, and solvers for pocket cubes through 7×7.

How it works

Pick a size, then turn layers in the 3D view or use move buttons and the sequence field (wide moves like Uw on 4×4+). Scramble calls cubing.js random-state generators. Solve uses search-based routines (Kociemba-style 3×3, dedicated 2×2 code, TWIPS on larger N×N). Solutions can play as animations. Color picker mode is 3×3-only: paint the Western scheme net, then solve with the same two-phase engine as a handheld solver.

When to use it

After a casual scramble of your desk cube, when learning how a known pattern is solved, or to validate that each face still has nine unique stickers before you twist hardware.

When not to use it

Speedcubing timed reconstructions, 2×2 or 4×4+ puzzles, or competitions that require certified random-state scrambles. The move list is near-optimal but not guaranteed minimal like a world-record solver.

How it compares to related tools

Dedicated 3D simulators such as cube-solver.com add N×N sizes and animation. This page is lighter: accurate 3×3 solving with a paintable net and no account. The Spin the Wheel and Random Choice Generator cover random picks, not spatial puzzles.

Common mistakes

Mirroring a cube photo without orienting white-to-top and green-to-front. Swapping two stickers by accident (makes the cube unsolvable). Expecting the digital scramble to match a WCA sheet — use official scrambles for timed practice.

Move notation (Singmaster)

Faces are U (Up), R (Right), F (Front), D (Down), L (Left), B (Back). A letter alone turns that face 90° clockwise as you look at it. A prime (U') is counter-clockwise. A 2 (U2) is a half turn. Wide or inner-layer moves are not used on this page.

Privacy

Sticker colors and solutions never leave your browser. Clearing the tab discards the current state — there is no cloud save.

Match the cube in your hand first

The colors on the screen have to match the plastic, including which center you are calling U. One sticker a quarter-turn off and the solution will not fit the cube you are holding. I use the playback to see the phases before I try to go fast. The solver is explaining a cube that can exist. If the stickers were peeled into a position no legal cube can have, no algorithm finishes, and the message means the coloring is impossible. It does not mean the page is broken. On the very large sizes, read the note on the page about what runs in the browser and what uses the embedded demo.

Frequently Asked Questions

How is this different from optimal 20-move solvers?+

Kociemba's method is fast and practical (often under 25 moves). God's-number optimal solvers exist but need more code and time; this tool prioritizes a responsive browser experience.

Can I enter moves instead of painting?+

Use Scramble or paint the result of your own turns. Typed move entry may be added later; for now the net is the source of truth.

Are these values cryptographically secure?+

Random generators use crypto.getRandomValues() in your browser for secure randomness where supported.

Which cube sizes are supported?+

Simulator and solve support 2×2 through 7×7. Sizes above 7×7 (up to 15×15 on some sites) may come later; 4×4+ solves can take a while in the browser.

How fast is the solution?+

The first visit loads lookup tables (a few seconds). After that, typical solves finish in under a second on a modern device.

What if my physical cube uses different colors?+

Match stickers by position, not the plastic color. White is Up, yellow Down, green Front, blue Back, red Right, orange Left — the Western color scheme.

Related tools