Tube JSON
Use one inner array per tube. Write balls from bottom to top: the first value is the bottom ball and the final value is the exposed top ball.
Bottom-to-top input: the last value moves first. Use [] for an empty tube.
Enter a Ball Sort tube layout, check every color count, search for a valid solution, and replay the result one top ball at a time. Puzzle data and search stay in your browser.
Use one inner array per tube. Write balls from bottom to top: the first value is the bottom ball and the final value is the exposed top ball.
Bottom-to-top input: the last value moves first. Use [] for an empty tube.
The search uses only standard four-ball tube rules. It never moves a matching group as one action.
Load valid tube JSON, then select Solve.
Each tube holds at most four separate balls. A legal move takes only the exposed top ball and places it into an empty tube or onto the same top color. A solution is complete only when every non-empty tube is full and contains one color; empty tubes are allowed.
The solver distinguishes invalid input, no solution found, search limit reached, search cancelled, and solver errors. Search runs in small browser batches so the page can update and accept cancellation. The solver searches for a valid solution. It may not return the shortest possible solution.
Color IDs may be finite numbers or short non-empty strings, matching the existing solver input style. This first version supports capacity 4 only. It does not support hidden colors, unknown colors, uneven capacities, automatic helper tubes, or moving several adjacent balls as one action.
Ball Sort Solver guide | Water Sort vs Ball Sort guide | Ball Sort Games · Water Sort Solver · Water Sort Level Editor
No. Every generated step moves exactly one exposed top ball. Adjacent matching balls require separate moves.
Write each tube from bottom to top. The first value is the bottom ball and the last value is the exposed top ball.
This page implements the standard four-ball rule, so a valid starting level needs exactly four balls of each color.
No. It searches for a valid solution and may not return the shortest possible solution.
Yes. Share Solution creates a link for this Ball Sort page with an explicit Ball puzzle type and the checked one-ball move list.
Choose the sorting style that matches the way you want to play.
Try another sorting puzzle selected from the game library.

A quick bottle puzzle for practicing empty-space planning and clean color stacks.

A food-themed sorting puzzle where matching items must be staged carefully.

A bright balloon sorting puzzle built around careful aim and color-clearing moves.

Fast ball sorting with simple rules and useful empty-tube strategy.

A bright fruit sorting puzzle built around smart matches and clean combinations.