Draw a random polygon from the triangle to the twenty-sided icosagon, named and sketched in its regular form -- for geometry practice, design prompts, and shape drills.
A polygon is a closed plane figure bounded by straight line segments, named for its number of sides -- triangle, quadrilateral, pentagon, and so on up. A regular polygon has all sides and all angles equal; irregular ones do not, and a concave polygon has at least one interior angle greater than 180 degrees. The interior angles of any polygon sum to (n-2) x 180 degrees, which is why a triangle always totals 180 and a quadrilateral 360. As sides increase a regular polygon approaches a circle, the observation Archimedes used to bracket the value of pi.
This generator draws a random polygon from the triangle up to the twenty-sided icosagon, names it, and sketches the regular version so you can see its shape.
Every result here is drawn using crypto.getRandomValues() -- the Web Crypto API's cryptographically secure randomness -- instead of Math.random(), so it's genuinely unpredictable, not just statistically random. Learn more.
Use it for geometry practice and naming drills, art and design prompts, picking a shape for a logo or game piece, or classroom warm-ups on interior angles and symmetry.
Generate picks a number of sides from 3 to 20 using the site's cryptographically secure randomness, shows the polygon's proper name with its side count, and draws the regular polygon in single-result mode.
The names are Greek number prefixes plus '-gon' (angle): pentagon is five, dodecagon twelve, icosagon twenty. Triangle and quadrilateral keep their Latin-rooted everyday names.
Yes -- the sketch shows the regular version, with all sides and angles equal, which is the standard form used to picture each polygon.