Voronoi diagram generator and tools

13 free tools for drawing, studying and using Voronoi diagrams — from a blank-canvas generator to catchment maps, globe-scale cells, patterns and step-by-step simulations. Everything runs in your browser.

Move your pointer over the cells — you are a site too.

Pick a tool

Each preview below is drawn live by the same geometry the tool uses.

Voronoi diagram guide

What is a Voronoi diagram?

Scatter a few points on a page and color every spot by the point it is closest to. The colored regions are the cells of a Voronoi diagram, and the lines between them are the places that are equally far from two points. Every cell holds exactly one point — its site — and together the cells cover the page with no gaps or overlaps.

The idea goes by many names. Mathematicians say Voronoi diagram, Voronoi tessellation or Dirichlet tessellation. Geographers and GIS users say Thiessen polygons. Physicists call the cells around atoms Wigner–Seitz cells. They all describe the same construction: divide space by nearest site.

Three facts explain most of what you see in any Voronoi diagram. Each border lies on the perpendicular bisector between two sites. Each corner, where three cells meet, is the center of a circle through three sites that contains no other site. And with ordinary straight-line distance every cell is a convex polygon. The illustrated guide walks through each of these with interactive figures.

Which Voronoi tool should I use?

Start from what you want to do:

How to make a Voronoi diagram online

  1. Open the Voronoi generator. A random diagram is ready to edit.
  2. Click to add sites, drag them to move them, and right-click to remove them. The cells follow instantly.
  3. Press Relax to make the cells more even, or Random to start over with a set number of points.
  4. Pick a palette and border style, and switch on the Delaunay triangulation if you want to see the structure underneath.

If your points are real places, use the map version instead: paste latitude and longitude pairs or upload a CSV or GeoJSON file, clip the cells to a city or district boundary, and read off the area of every cell in square kilometers. All tools compute in your browser; your data is not uploaded.

Voronoi diagrams in planning and GIS

In geography the cells are called Thiessen polygons, after the meteorologist who used them in 1911 to estimate rainfall over an area from a handful of rain gauges. Each gauge stands for the area closer to it than to any other gauge. The same logic gives a first estimate of many catchments:

  • the neighborhood each school, clinic or library serves if people go to the nearest one;
  • the trade area of each store in a chain, and where a new store would take customers from;
  • the response zone of each fire station or ambulance base;
  • the area a weather station or air-quality sensor represents.

Where straight-line cells fall short

A Voronoi cell measures distance as the crow flies. Rivers, rail lines and road networks bend real travel, so for walking or driving catchments a network-based isochrone is more accurate. Size matters too: bigger or better facilities attract people from further away, which a weighted Voronoi diagram can approximate. And at country or world scale, flat-map distance is distorted, so use the spherical Voronoi tool.

Voronoi diagrams in design and art

Cells grown from scattered points look natural because nature builds them the same way: giraffe skin, dried mud, dragonfly wings, foam and plant tissue all approach Voronoi patterns. Designers use that look in facade screens, lamps and furniture, jewelry, 3D-printed lattices and textile prints.

Two settings decide the character of a pattern. Regularity — how many relaxation steps the points get — moves it from wild to calm and honeycomb-like. The gap between cells, with rounded corners, turns a diagram into something that can be cut from a sheet. Try both in the pattern generator. For pictures, the mosaic and stippling tools follow the colors and tones of a photo, and the fantasy map generator uses a relaxed Voronoi grid as the backbone of a whole world.

The geometry behind it

Delaunay triangulation

Connect every two sites whose cells share a border and you get the Delaunay triangulation: triangles whose circumcircles contain no other site. It carries the same information as the Voronoi diagram, and most software, including every tool here, builds it first. Explore it in the Delaunay generator.

Relaxation and centroidal Voronoi tessellations

Moving every site to the center of its cell and repeating — Lloyd's algorithm — spreads points evenly. When every site sits at its cell's centroid the result is a centroidal Voronoi tessellation, the basis of good meshes, even sampling and stippling. Watch it converge in the relaxation tool.

Weights, metrics and the sphere

Change how distance is measured and the cells change shape: weights give power and multiplicatively weighted diagrams with curved borders; Manhattan or Chebyshev distance gives borders at 45 and 90 degrees; great-circle distance on the globe gives cells that wrap around the Earth. Each has its own tool: weighted Voronoi, distance metrics and spherical Voronoi.

How the diagram is computed

Fast algorithms build a Voronoi diagram of n sites in O(n log n) time, either with Fortune's sweep line or through the Delaunay triangulation. The simulation shows both the growing-cells picture and the sweep line with its beach line of parabolas.

Glossary

Site (seed, generator)
One of the input points. Each site owns exactly one cell.
Voronoi cell
All locations closer to one site than to any other.
Voronoi edge
A border between two cells, lying on the perpendicular bisector of their sites.
Voronoi vertex
A corner where three or more cells meet; the center of an empty circle through their sites.
Thiessen polygons
The GIS name for Voronoi cells, used for catchments and for weighting point measurements by area.
Delaunay triangulation
The dual of the Voronoi diagram: sites joined whenever their cells touch.
Lloyd relaxation
Repeatedly moving each site to its cell's centroid to even out the cells.
Power diagram
A weighted Voronoi diagram using squared distance minus squared radius; its borders stay straight.

Questions

What is a Voronoi diagram?

A Voronoi diagram divides a plane into cells around a set of points called sites. Every location inside a cell is closer to that cell's site than to any other site, and the borders run exactly halfway between neighboring sites.

How do I make a Voronoi diagram online?

Open the Voronoi diagram generator and click to place points; the cells appear instantly. Drag points to move them, press Relax to even the cells out, and choose colors. For real places, use the Voronoi map generator, which accepts coordinates, CSV or GeoJSON.

Are Voronoi diagrams and Thiessen polygons the same?

Yes. Thiessen polygons is the name used in geography, hydrology and GIS for exactly the same construction, after the meteorologist Alfred H. Thiessen.

What is the difference between a Voronoi diagram and a Delaunay triangulation?

They are duals of each other. The Delaunay triangulation joins two sites whenever their Voronoi cells share a border, and each Voronoi corner is the center of a Delaunay triangle's circumcircle.

Can I use a Voronoi diagram for catchment areas?

Yes, as a first estimate: each cell is the area closer to one facility than to any other. Use the Voronoi map generator for real places, a weighted Voronoi diagram if facilities differ in size, and a road-network isochrone when travel routes matter.

Is my data uploaded anywhere?

No. All Voronoi tools on this site compute in your browser. Only place searches on the map tool are sent to the map provider.