+
Click or drag & drop
JPG / PNG supported
Board size: 8 × 8
* Choose from 2×2 to 12×12 (the image is center-cropped to a square)
Time limit
The number of pieces is not the only thing that determines how hard the puzzle is. The content of your photo changes the perceived difficulty dramatically.
Photos with many colors and different textures across regions — autumn foliage, a fruit market, patterned fabric — let you guess where a fragment belongs even from a small piece, keeping the solve flowing. Conversely, photos with large uniform areas such as blue sky or a white wall make every piece look alike, turning even a low piece count into a real challenge.
Portraits with heavy background blur have the same effect: every out-of-focus piece looks similar. A sharp, full-focus snapshot works better for a puzzle than a bokeh-heavy portrait.
The browser's built-in drag-and-drop API (HTML5 DnD) was designed for desktops and does not mesh well with touch events on phones — a grabbed piece can jump when it conflicts with scrolling. Image Puzzle therefore implements dragging from scratch using pointer events (pointermove / pointerup).
This approach routes mouse, finger and stylus input through the same code path, so behavior never changes between devices. When you release a piece, its destination is decided by the element directly under your finger or cursor at that moment (found with elementFromPoint). Over a board cell, the piece goes into that cell whether or not it is the right one; if another piece is already there, the two swap (the displaced piece moves to where the dragged piece came from: the tray or its previous cell). Over the tray, the piece goes back to the tray.
If you release it outside every cell and outside the tray, the piece stays where it was before you dragged it. There is no snap distance that pulls a piece into a nearby cell: the only thing that counts is which cell the pointer is over when you let go. Releasing precisely over the cell you are aiming for is itself spatial-reasoning practice.
Once you start a puzzle, its state (which pieces sit where on the board, the order of the pieces left in the tray, and the time limit) is saved automatically to your browser's localStorage together with the photo the puzzle uses. If you reload the page, or close it and open it again later, you pick up where you left off. The time limit is saved as the moment the game should end, so the remaining time keeps running down while the page is closed.
The saved photo is the centre square of the photo you chose, scaled down to a 720-pixel-square JPEG. It stays inside this browser and is never sent to a server, but it does remain on the device. Pressing Start over deletes the saved state and the photo together. Starting a new puzzle overwrites the saved data with the new one.