Math
Runs Locally in Browser

Hilbert Curve Generator

Visualize recursive space-filling Hilbert curves (orders 1–7) with PNG and SVG export.

Last updated:

Hilbert Settings

Control order & grid coordinates

Order 4
Order 1 (4 pts)Order 4 (256 pts)Order 7 (16k pts)
Overlay Helper GridShow coordinate lines on backdrop

Styling Options

Line stroke & background settings

Complexity Audit
Vertices:16
Grid Resolution:4 x 4
Render Speed:0 ms
Trace Coordinates
100
Drag to Pan • Scroll to Zoom • Hover coordinates
Scale: 1x
Tracing SpeedPoints mapped per animation frame
100 pts
Hilbert Curve Mathematical Insights

A Hilbert Curve is a space-filling fractal curve that maps a 1D line segments recursively into a 2D space. Points that are close in the 1D traversal mapping are close to each other in 2D space, preserving locality. This makes it highly useful in data compression, graphics engines, and database indexing strategies.

Grid CellsOrder 1 creates a 2x2 grid. Each order doubles the grid size, i.e., 2^order.
Index (d)Representing the distance along the line segment from the start point (0).
Coordinates (X,Y)Discrete integer location in the 2D grid structure.

About Hilbert Curve Generator

Explore continuous space-filling Hilbert curves across orders 1 through 7 locally with configurable line thickness, color gradients, grid backdrop, and PNG/SVG download.

Runtime

Client-side HTML5 Canvas & SVG Hilbert curve plotter.

Formats

Export: PNG or Vector SVG.

Constraints

Order ranges from 1 to 7 (4^7 = 16,384 cells at order 7) to keep interactive rendering smooth.

Discover More Tools

Related utilities across the Imgira catalog.

Explore All Tools