HomeArticlesMathematics

Peano Space-Filling Curve: A Journey Through Dimensionality

A fascinating mathematical construct that challenges our understanding of space and dimension.

mysimulator teamUpdated June 2026≈ 4 min read▶ Open the simulation

What is the Peano Space-Filling Curve?

The Peano space-filling curve is a continuous curve that passes through every point in a unit square. It was first described by Italian mathematician Giuseppe Peano in 1890, marking one of the earliest examples of fractal geometry. This curve demonstrates how a one-dimensional object can fill a two-dimensional space without any gaps or overlaps.

The construction of the Peano curve is based on recursive subdivision and weaving through cells of a grid. Starting with a simple line segment, each iteration subdivides the square into smaller segments and weaves them together in a specific pattern to form a more complex path.

Why Does It Matter?

The Peano curve is significant because it challenges our intuitive understanding of dimensionality. It shows that a one-dimensional object can fill a two-dimensional space, which has implications in various fields such as computer graphics, data compression, and even theoretical physics.

Moreover, the concept of space-filling curves like the Peano curve has applications in areas such as image processing, where they are used to map multi-dimensional data into one dimension for efficient storage and retrieval.

live demo · related simulation● LIVE

How Does It Work?

The construction of the Peano curve follows a recursive algorithm. Starting with a simple line segment, each iteration subdivides the square into nine smaller squares (a 3x3 grid) and weaves through them in a specific order to form a more complex path that fills the entire unit square.

This weaving pattern is repeated at finer scales as the recursion level increases, resulting in a curve that becomes increasingly intricate but remains continuous.

What Are Some Real-World Applications?

The Peano curve has applications in computer science and image processing. For instance, it can be used to create space-filling hash functions for efficient data storage and retrieval. The curve's ability to map multi-dimensional data into one dimension makes it useful in various algorithms that require compact representations of high-dimensional spaces.

In addition, the concept of space-filling curves has inspired other fractal constructions and is relevant in fields such as topology and geometric modeling.

Frequently asked questions

How does the Peano curve differ from a regular line segment?

Unlike a regular line segment, which fills only one dimension, the Peano curve can fill two dimensions. It is continuous and passes through every point in a unit square, demonstrating how a one-dimensional object can occupy a higher-dimensional space.

What are some practical uses of the Peano curve?

The Peano curve can be used for data compression, efficient storage and retrieval of multi-dimensional data, and as a basis for certain hash functions. It also has applications in computer graphics and geometric modeling.

Can the Peano curve fill any shape besides a unit square?

Yes, the concept of space-filling curves can be generalized to other shapes and dimensions. However, the specific construction of the Peano curve is tailored for filling a unit square.

Is the Peano curve used in real-world applications today?

Absolutely. The principles behind the Peano curve are still relevant today, with its applications ranging from data compression and hash functions to computer graphics and geometric modeling.

Try it live

Everything above runs in your browser — open Peano Space-Filling Curve and change the parameters while it is running. Nothing is installed, nothing is uploaded, the whole model lives in one tab.

▶ Open Peano Space-Filling Curve simulation

What did you find?

Add reproduction steps (optional)