gekro
GitHub LinkedIn

Shape Sorter

Play a free sorting game for small children: tap a shape, then tap the hole where it belongs. Sort by shape, colour or size. No timer, no sound.

Sort by

How many kinds

Sort by shape.

Tap a piece. Then tap where it goes.

My shelf

Rounds sorted 0

Shelves full 0

Best row 0

How it works

Pick what to sort by: shape, colour or size. Tap a piece to pick it up, then tap the hole or box it belongs in. Tap the piece again to put it back. Each hole takes only its own kind, so a piece that is not right stays in your hand and the game says "Try again" and what to look at. There is no clock, no sound and nothing to lose, and nothing needs dragging.

When every piece is away you earn a star on the shelf, and five stars fill it. If five pieces in a row go to the right place at the first try, the game offers more kinds to sort. You can say no.

Colours also have a small mark on them (a dot, a plus, a bar, a diamond, a wave, a cross) so a colour is never the only clue. Your totals stay in this browser and are never sent anywhere.

As-is, no warranty. These apps are free under their listed license and run entirely in your browser. Use at your own risk — don't blame me if your PC catches fire, your dog runs away, or the math turns out wrong. Verify anything that actually matters. None of this is professional financial, medical, legal, or engineering advice.

© 2026 Rohit Burani · MIT · Built at gekro.com · View source ↗

Guide

How to play

Choose what to sort by at the top: Shape, Colour or Size. Choose How many kinds: 2, 3, 4 or 6. Then tap a piece to pick it up. It lifts and glows, and the holes light up. Tap the hole it belongs in. Tap the same piece again if you want to put it back.

  • Shape. The holes are outlines of shapes, with the shape’s name under each. Pieces come in a few colours, but the colour does not matter here.
  • Colour. The holes are boxes in the six colours, with the colour’s name under each. Pieces come in a few different shapes, which do not matter here.
  • Size. The holes are small, medium and big boxes. All the pieces are the same shape and the same colour in a round, so the only thing to look at is size. Size has at most three kinds, so choosing 4 or 6 gives you three sizes.

If a piece goes in a hole it does not belong in, the game says “Try again” and what to look at (the shape, the colour or the size). The piece stays in your hand so you can tap another hole. It does not cost you a star. When a piece goes in, it appears in the hole and the game says what went where: “Yes! The red star goes in the star hole.”

When the last piece is away, you earn a star on your shelf. Five stars fill the shelf, and the next round starts a new one. Press Next round when you are ready. Nothing moves on by itself.

After five pieces in a row go to the right hole at the first try, the game offers more kinds to sort. You can say yes or not now. It asks once, and asks again only after a new run of five.

Colour is never the only clue. Each of the six colours has its own small mark on top of it, shown whenever you sort by colour: a dot for blue, a plus for yellow, a bar for red, a diamond for purple, a wave for green and a cross for orange. Holes carry the same mark and also the colour’s name. Everything works with the keyboard: Tab to a piece or a hole, press Enter or Space. A screen reader hears each piece named (“red star”) and each hole with how many pieces are in it. Holding a key down does not tap repeatedly. Motion is short and gentle, and it is switched off if your device asks for less motion. There is no dragging anywhere, which keeps the game easy for small hands.

How it works

The engine is plain data and a few pure functions. The page draws what the engine returns.

LevelKinds (holes)Pieces
Two24
Three35
Four46
Six68
  • A round is never impossible. For every mode and level, the tests build 300 rounds and check that each piece has exactly one hole that fits it, using a table written separately from the engine, and that every hole is wanted by at least one piece. Holes are all different. The number of pieces is always the number of kinds plus two.
  • What varies. In shape mode the colours vary over three (blue, yellow, red) and every piece is the big size. In colour mode the shapes vary over three (circle, square, triangle). In size mode one shape and one colour are chosen for the whole round. This keeps the thing being sorted by the easiest thing to see.
  • A tap on a hole returns a new game state. A hole that does not fit counts one miss and changes nothing else. A piece that is already away, a piece or hole that does not exist, or a finished round is ignored, and the very same game is returned. Random play of thousands of taps never breaks these rules and always finishes.
  • The ladder. Only a piece that went in with no earlier “Try again” adds to the row. A “Try again” resets the row to zero. The offer appears at five, once, after the round finishes. It is not offered at six kinds, or at three sizes.
  • The drawings. Each shape is a short list of coordinates in a 100 by 100 box. The tests check that every coordinate sits between 4 and 96 so an outline is never cut off, that the triangle, hexagon and star have 3, 6 and 10 corners, and that the star’s points really alternate between a long and a short radius. The six colour marks are different from each other, and the tests check that they are drawn near the middle of the 100 by 100 box.

Your totals

Three small whole numbers are kept in your browser’s local storage under one key: rounds sorted, shelves full and your best row. They are checked when they are read, so a damaged value falls back to zero. Nothing is sent anywhere, there is no account, and the page works with storage blocked. The address of the page holds only the mode and the number of kinds.

Limits

  • There is no sound and no dragging. You tap a piece and then a hole.
  • The six colours are mixes of the site’s four accent colours, so the names (blue, green, yellow, red, purple, orange) are the closest everyday words, not exact paint names.
  • Size mode shows the sizes as sizes only in the tray and the holes. Pieces already placed are shown at one small size.
  • The totals live in one browser. They are not shared between devices.
All Fun tools →

For informational purposes only. Not financial, medical, or legal advice. You are solely responsible for how you use these tools.