Did you find this tool helpful?
Draw precise collision shapes over your sprite images and export JSON for PixiJS, Phaser 3 and Matter.js.
Drop your image onto the canvas or use the Load Image button.
Click to place polygon vertices. Add circles or rectangles with the shape tabs.
Drag any vertex to reposition. Select & delete individual shapes.
Choose your engine (PixiJS, Phaser, Matter.js) and copy or download the JSON.
When building 2D games, every object needs a collision shape — the invisible boundary the physics engine uses to detect collisions. A simple axis-aligned bounding box is fast but inaccurate. A precise polygon that follows the outline of your sprite makes collisions feel natural and fair to players.
This tool lets you trace any sprite by placing polygon vertices directly on top of the image. You can define multiple shapes per sprite to build compound bodies — for example, a character with separate head, body and foot colliders — and export the result as ready-to-use JSON for the most popular web game engines.
We read every message ✌️