Hilbert Curve Generator

Plot a Hilbert curve, one continuous path that fills a square. Change the iteration level to see the recursive pattern grow. Runs in your browser.

4
Level 4Points 0

The curve visits every cell in a 2n×2n grid in a single path. Higher levels add more detail; drawing and animation stay smooth up to level 6 or 7 on most devices.

Maintained by ToolexeLast updated March 16, 2026