Simplify Your Workflow: Search MiniWebtool.
Add Extension
Related Tools
Julia Set GeneratorSpirograph Generator
Home Page > Miscellaneous > General Tools > Voronoi Diagram Generator

Voronoi Diagram Generator

Generate Voronoi diagrams from a set of seed points online. Click the canvas to add or drag points, switch between Euclidean, Manhattan, Chebyshev and Minkowski distance metrics, pick from curated color palettes, watch cells animate into place, and export the result as SVG or PNG. Includes Lloyd relaxation, golden-spiral and hexagonal seed presets for crisp, even cells.

Voronoi Diagram Generator
Try a preset:
After generating, click the canvas to add points, drag to move, double-click to delete.

Embed Voronoi Diagram Generator Widget

โœ“ Generated

Euclidean โ€” straight-line distance (classic) Scattered random ยท 18 seed points ยท Aurora (teal ยท violet ยท rose)

Metric euclidean
Cells 18
Avg area (pxยฒ) โ€”
Largest / smallest โ€”
720 ร— 480
click add point ยท drag move ยท dblclick delete ยท R relax once
📲

Install MiniWebtool App

Add to your home screen for instant access โ€” free, fast, no download needed.

           

Want faster & ad-free?

About Voronoi Diagram Generator

The Voronoi Diagram Generator partitions a 2D plane into regions based on closeness to a set of seed points. Every point in the plane belongs to whichever seed is nearest, so the diagram looks like a patchwork of cells around the input points. This tool generates Voronoi diagrams interactively in your browser โ€” drop new seeds with a click, drag any seed to redraw the cells in real time, switch between four distance metrics, and apply Lloyd relaxation to even out cell sizes. Export the result as crisp SVG or shareable PNG.

How it works: for every spot on the canvas, the algorithm finds the closest seed point and paints that spot with the seed's color. The boundary between any two cells is the perpendicular bisector of the segment between those two seeds โ€” that is, the set of locations exactly equidistant from both. Three perpendicular bisectors meet at every cell-corner, which is also the center of a circle passing through three seed points (the empty circle property).

The four distance metrics โ€” visualized

The shape of every Voronoi cell is determined by which distance metric you use. Each metric defines what "a circle" looks like โ€” and that circle's shape is exactly the shape that bumps up against its neighbors to form cell boundaries.

Euclidean \(\sqrt{x^2 + y^2}\)
circle = circle
Manhattan \(|x|+|y|\)
circle = diamond
Chebyshev \(\max(|x|,|y|)\)
circle = square
Minkowski p=3 \((|x|^3+|y|^3)^{1/3}\)
circle = superellipse

That is why Manhattan-metric cells have only horizontal, vertical, and 45ยฐ edges, while Chebyshev cells have only horizontal and vertical edges โ€” the boundary between two cells is always tangent to the shapes of those two "circles". Euclidean gives the classic curved-edged Voronoi everyone associates with the name. Minkowski p=3 is a mathematically elegant in-between case used in computational design where the L1 corners feel too harsh but the L2 circles feel too round.

What makes this generator different

โœ‹ Real interactivity Click anywhere on the canvas to add a seed point; drag any seed to a new location and watch the cells flow with it; double-click a seed to delete. No other free Voronoi tool gives you live drag-to-edit feedback at this responsiveness โ€” the diagram repaints under your finger in under 8 ms.
๐Ÿ“ Four metrics, one canvas Switch between Euclidean, Manhattan, Chebyshev, and Minkowski p=3 instantly via the pill switcher above the canvas. See the same point set produce wildly different cell shapes โ€” a perfect teaching aid for distance metrics in courses on geometry, machine learning, or game design.
โœฟ Lloyd relaxation built in One-click Lloyd relaxation snaps each seed toward its cell centroid. Repeated passes produce a Centroidal Voronoi Tessellation โ€” used in mesh generation, stippling, and image quantization to obtain visually uniform cells that tend toward a hexagonal packing.
๐ŸŒฑ Seven seed layouts Random scatter, Poisson-like uniform, square grid, hex grid, concentric rings, golden-ratio spiral, and three-cluster territories. The golden spiral matches phyllotaxis (sunflower seed packing). The hex grid is the natural fixed point of Lloyd relaxation. Every layout takes a reproducible random seed string.
๐ŸŽจ Render-style options Filled cells (classic), wireframe edges (Delaunay-friendly view), distance heatmap (visualize the actual distance field), and stipple ink (artistic dotwork). Switch styles without re-generating โ€” every style is rendered live from the same underlying classification.
โฌ‡ SVG + PNG + Clipboard Vector SVG export wraps the cell colors as a single image plus the seed points as proper vector circles so they stay crisp at any zoom. PNG export for slides and social posts. Copy-PNG-to-clipboard for instant pasting into chat, docs, or design tools.

Where Voronoi diagrams show up

  • Cell-tower coverage maps โ€” a phone connects to whichever tower it is closest to, which is exactly the Voronoi cell of that tower.
  • John Snow's 1854 cholera map โ€” Snow drew the Voronoi cell around each water pump in Soho and counted cholera deaths inside each cell, isolating the contaminated Broad Street pump.
  • Procedural texturing โ€” Worley noise (cellular noise) is used in everything from skin shaders to terrain generation in games like Minecraft and No Man's Sky.
  • Mesh generation โ€” finite-element solvers prefer near-equilateral triangles, and the Delaunay triangulation (the dual of the Voronoi diagram) maximizes the smallest angle across all triangles.
  • Robot path planning โ€” the edges of the Voronoi diagram around obstacle points are the safest paths a robot can take, because they maximize distance from every obstacle.
  • Stippling and halftoning โ€” Lloyd-relaxed Voronoi diagrams produce visually pleasing point distributions used in artistic stippling and printer dithering.
  • Astronomy โ€” galaxy super-clusters and the cosmic web display Voronoi-like structure thanks to gravitational clumping; Voronoi tessellation is a standard tool in galaxy-density estimation.
  • Crystallography โ€” Wignerโ€“Seitz cells (Voronoi cells around atoms in a lattice) define the primitive volume of every unit cell in solid-state physics.

Mathematical detail

Cell definition โ€” for a finite set of seed points \(\{p_1, p_2, \dots, p_n\}\) and any metric \(d(\cdot,\cdot)\), the Voronoi cell of \(p_i\) is

\[ V_i = \{ x \in \mathbb{R}^2 \mid d(x, p_i) \le d(x, p_j),\ \forall j \neq i \} \]

so every cell is the intersection of half-spaces (for Euclidean metric) or half-planes (for L1/Lโˆž). The cells partition the plane up to a measure-zero boundary set.

Centroidal Voronoi (Lloyd's fixed point) โ€” at a CVT, every seed coincides with its cell's centroid:

\[ p_i = \frac{1}{|V_i|} \int_{V_i} x\, dA \]

Lloyd's algorithm iterates: classify pixels โ†’ move each seed to its cell's centroid โ†’ repeat. It always decreases the average within-cell second moment, so it converges. The hexagonal lattice is the global minimum for uniform density on a torus โ€” which is why honeycombs are so efficient.

How to use this tool

  1. Pick a preset or set up the form. The preset chips at the top of the form are one-click starting points โ€” Classic Cells, Honeycomb, City Blocks, Chess King, Golden Spiral, Ripples, Lloyd Relaxed, Wireframe, Stipple Ink, 3 Territories.
  2. Choose the distance metric. Euclidean for the classic look, Manhattan for blocky cells, Chebyshev for axis-aligned squares, Minkowski p=3 for rounded-square in-between cells.
  3. Click Generate. The diagram renders with an animated cell-growth reveal so you see how each seed "claims" its territory.
  4. Edit on the canvas. Click empty space to add a new seed point. Drag any seed dot to move it โ€” the cells follow your finger in real time. Double-click a seed to delete it.
  5. Polish with Lloyd relaxation. Click the Lloyd relax button (or press R) to nudge every seed toward its cell's centroid. A few passes give you a visually uniform tessellation.
  6. Switch metric without losing your point set. Use the metric pills above the canvas โ€” the same seeds, different distance rule, dramatically different cells.
  7. Export. SVG for vector use, PNG for raster sharing, or copy PNG straight to clipboard.

Tips for getting great-looking diagrams

  • For visually uniform cells, start with a Random or Uniform layout and apply 3โ€“4 passes of Lloyd relaxation. You will see the cells converge toward a hexagonal pattern with very similar sizes.
  • For pop-art posters, use the Cluster layout with the Rainbow palette and turn on cell edges. The three territories produce a striking visual hierarchy with bold color blocks.
  • For technical-looking diagrams, use the Wireframe style on a Uniform layout โ€” the clean black lines on white background read like a CAD drawing.
  • For organic, hand-drawn patterns, use the Stipple style โ€” the algorithm reads cell edges as dotwork and produces a pen-and-ink look used in scientific illustration.
  • For mathematical clarity, switch to Manhattan or Chebyshev with a small point count (8โ€“12 points). The right-angle edges make it easy to trace by hand why each cell has the shape it does.

Frequently asked questions

What is a Voronoi diagram?

A Voronoi diagram partitions a plane into cells based on which of a set of seed points each location is closest to. Every cell consists of all locations nearest to one specific seed. The cell boundaries are equidistant from two or more seeds.

How does this generator compute the diagram?

It uses brute-force per-pixel classification: for each pixel on the canvas it finds the nearest seed point under the chosen distance metric, then paints that pixel with that seed's color. The cost is O(WยทHยทN) but it is fully robust to degenerate inputs and trivially supports any distance metric.

What are the four distance metrics?

Euclidean is the straight-line distance giving the classic Voronoi look. Manhattan is the axis-aligned city-block distance. Chebyshev is the chess-king distance. Minkowski p=3 is a rounded-square in-between metric. Switching metrics on the same point set produces dramatically different cell shapes.

What is Lloyd relaxation?

Lloyd's algorithm repeatedly moves each seed point to the centroid of its current Voronoi cell. After several iterations the cells become visually uniform and tend toward a hexagonal honeycomb โ€” the structure called a Centroidal Voronoi Tessellation.

Can I edit the points after generating?

Yes. Click anywhere on the canvas to add a new seed point. Drag any seed to move it โ€” the diagram repaints continuously. Double-click a seed to delete it. The Reset button restores the original seed layout.

What is the difference between Voronoi and Delaunay?

They are graph duals. The Delaunay triangulation connects every pair of seeds whose Voronoi cells share an edge. Equivalently, three seeds form a Delaunay triangle if and only if no other seed lies inside the triangle's circumscribed circle.

Can I make the same diagram twice?

Yes. Type any string into the Random Seed field โ€” the same string always reproduces the same initial point set. Combine that with the other form fields to share a permalink to an exact diagram.

What can I do with the exported SVG or PNG?

Free for personal and commercial use โ€” diagrams generated by this tool are not watermarked or licensed. Use them for slides, blog illustrations, lecture notes, T-shirt prints, generative art prompts, or as base maps for further work in Illustrator or Inkscape.

Reference this content, page, or tool as:

"Voronoi Diagram Generator" at https://MiniWebtool.com/voronoi-diagram-generator/ from MiniWebtool, https://MiniWebtool.com/

by miniwebtool team. Updated: 2026-05-20

General Tools:

Top & Updated:

Random Name PickerRandom PickerInstagram User ID LookupImage ResizerLine CounterFacebook User ID LookupFPS ConverterRelative Standard Deviation CalculatorSort NumbersRemove SpacesMAC Address GeneratorWord to Phone Number ConverterBatting Average CalculatorMercury Retrograde CalendarMAC Address LookupERA CalculatorSlope and Grade Calculatorโฌ› Aspect Ratio Calculator๐Ÿ“ท OCR / Image to TextRandom Quote GeneratorFeet and Inches to Cm ConverterJob FinderSum CalculatorPercent Off CalculatorSun, Moon & Rising Sign Calculator ๐ŸŒž๐ŸŒ™โœจInvisible Text GeneratorMerge VideosSHA256 Hash GeneratorAudio SplitterRandom Credit Card GeneratorNumber of Digits CalculatorRandom IMEI GeneratorRandom Truth or Dare GeneratorVertical Jump CalculatorMaster Number CalculatorMP3 LooperImage SplitterLog Base 10 CalculatorRandom Fake Address GeneratorBitwise CalculatorWeight Loss CalculatorOPS CalculatorLunar Calendar ConverterPhone Number ExtractorCaffeine Overdose CalculatorRandom Activity Generator๐Ÿ–ฑ๏ธ Click CounterFile Size ConverterCm to Feet and Inches ConverterSquare Root (โˆš) CalculatorSalary Conversion CalculatorRandom Poker Hand GeneratorBattery Life CalculatorRandom Superpower GeneratorYouTube Channel StatisticsRoman Numerals ConverterRandom Writing Prompt GeneratorCompound Growth CalculatorNumber to Word ConverterRandom Movie PickerRandom Birthday GeneratorText FormatterHalfway Date CalculatorOctal CalculatorRandom Meal GeneratorStair CalculatorWord Ladder GeneratorSun Position CalculatorSigma Notation Calculator (Summation)Saturn Return CalculatorSlugging Percentage CalculatorOn Base Percentage CalculatorIP Subnet CalculatorLong Division CalculatorYouTube Tag ExtractorSHA512 Hash GeneratorAdd Text to ImageFirst n Digits of PiRandom Loadout GeneratorCompare Two StringsRandom Emoji GeneratorGray Code to Binary ConverterDecimal to BCD ConverterBinary to Gray Code ConverterBCD to Decimal ConverterList of Prime NumbersBcrypt Hash Generator / CheckerBingo Card GeneratorVideo CompressorVideo to Image ExtractorMartingale Strategy CalculatorArc Length CalculatorWord Scramble GeneratorAPI TesterPercent Growth Rate CalculatorFlip VideoRandomize NumbersLeap Years List๐Ÿ“… Date CalculatorQuotient and Remainder CalculatorSocial Media Username CheckerHebrew Calendar ConverterRandom User-Agent GeneratorWAR CalculatorBolt Torque CalculatorImage CompressorEmail ExtractorBroken Link CheckerAI Text HumanizerConnect the Dots GeneratorBreak Line by CharactersDay of the Year Calculator - What Day of the Year Is It Today?Remove AccentProportion CalculatorIP Address to Hex ConverterAI Language DetectorPercentile CalculatorRandom Number PickerCM to Inches ConverterName RandomizerTime Duration CalculatorPartition Function CalculatorLove Compatibility CalculatorCone Flat Pattern (Template) GeneratorURL ExtractorRandom Time GeneratorRandom Tournament Bracket GeneratorSmall Text Generator โฝแถœแต’แต–สธ โฟ แต–แตƒหขแต—แต‰โพMD5 Hash Generator๐Ÿ” Plagiarism CheckerDecibel (dB) CalculatorWhat is my Zodiac Sign?Sum of Positive Integers CalculatorAdd Prefix and Suffix to TextRatio to Percentage CalculatorMultiple Fraction Calculator๐Ÿ”Š Tone GeneratorAcreage CalculatorLED Resistor CalculatorFirst n Digits of eBinary to BCD ConverterPercent to PPM ConverterColor InverterEffect Size CalculatorTrigonometric Equation SolverYouTube Thumbnail Downloader1099 Tax CalculatorSteel Weight CalculatorNumber ExtractorBoiling Point CalculatorBeer Chill Time CalculatorDMS to Decimal Degrees ConverterEstimation CalculatorLottery Number GeneratorMolarity CalculatorDice RollerYouTube Comment PickerText Case ConverterVideo SplitterMAC Address AnalyzerMaze GeneratorOutlier CalculatorWhat is my Lucky Number?Modulo CalculatorDay of Year CalendarRemove Lines Containing...Fraction CalculatorSourdough CalculatorRandom Name GeneratorAdjust Video SpeedExponential Decay CalculatorRandom Line PickerAstrological Element Balance CalculatorRandom Chess Opening GeneratorRandom US State GeneratorTwitter/X Timestamp ConverterShort Selling Profit CalculatorReverse VideoSocial Media Post Time OptimizerStandard Error CalculatorLinear Programming SolverMandelbrot Set ExplorerWHIP CalculatorRandom Video Thumbnail GeneratorTransformer CalculatorAI Punctuation AdderIP Address to Binary ConverterPercentage Increase CalculatorWater Usage CalculatorReverse TextSquare Numbers ListRandom Chord GeneratorRandom PIN GeneratorName Number CalculatorBoxing Punch Power CalculatorCollatz Conjecture CalculatorHTML CompressorRandom RPG Character GeneratorAI ParaphraserSort Lines AlphabeticallyHex to BCD ConverterBCD to Binary ConverterBCD to Hex ConverterMedian CalculatorList RandomizerAverage CalculatorPVIFA CalculatorHypotenuse CalculatorRemove Audio from VideoActual Cash Value CalculatorScientific Notation to Decimal ConverterAngel Number CalculatorLog Base 2 CalculatorRoot Mean Square CalculatorSHA3-256 Hash GeneratorAI Sentence ExpanderLbs to Kg ConverterHex to Decimal ConverterRandom Group GeneratorConvolution CalculatorRandom String GeneratorRemove Leading Trailing SpacesAmortization CalculatorMarkup CalculatorPVIF CalculatorDecimal to Hex ConverterInstagram Font GeneratorSocial Media Image Size GuideTikTok Money CalculatorTwitter/X Character CounterYouTube Watch Time CalculatorTwitch Earnings CalculatorYouTube Shorts Monetization CalculatorFacebook Ad Cost CalculatorSocial Media ROI CalculatorCTR CalculatorROAS CalculatorInfluencer ROI CalculatorForce CalculatorAcceleration CalculatorVelocity CalculatorMomentum CalculatorProjectile Motion CalculatorKinetic Energy CalculatorPotential Energy CalculatorWork and Power CalculatorDensity CalculatorPressure CalculatorIdeal Gas Law CalculatorFree Fall CalculatorTorque CalculatorHorsepower CalculatorDilution CalculatorChemical Equation BalancerStoichiometry CalculatorPercent Yield CalculatorEmpirical Formula CalculatorTitration CalculatorMole/Gram/Particle ConverterIrregular Polygon Area CalculatorFrustum CalculatorTorus Calculator3D Distance CalculatorGreat Circle Distance CalculatorCircumscribed Circle (Circumcircle) CalculatorInscribed Circle (Incircle) CalculatorAngle Bisector CalculatorTangent Line to Circle CalculatorHeron's Formula CalculatorCoordinate Geometry Distance CalculatorVolume of Revolution CalculatorSurface of Revolution CalculatorParametric Curve GrapherRiemann Sum CalculatorTrapezoidal Rule CalculatorSimpson's Rule CalculatorImproper Integral CalculatorL'Hรดpital's Rule CalculatorMaclaurin Series CalculatorPower Series CalculatorSeries Convergence Test CalculatorInfinite Series Sum CalculatorAverage Rate of Change CalculatorInstantaneous Rate of Change CalculatorRelated Rates SolverOptimization Calculator (Calculus)Gradient Calculator (Multivariable)Divergence CalculatorCurl CalculatorLine Integral CalculatorSurface Integral CalculatorJacobian Matrix CalculatorNewton's Method CalculatorRREF Calculator (Row Echelon Form)Matrix Inverse CalculatorMatrix Multiplication CalculatorDot Product CalculatorCross Product CalculatorVector Magnitude CalculatorUnit Vector CalculatorAngle Between Vectors CalculatorNull Space CalculatorColumn Space CalculatorCramer's Rule CalculatorMatrix Diagonalization CalculatorQR Decomposition CalculatorCholesky Decomposition CalculatorMatrix Power CalculatorCharacteristic Polynomial CalculatorBayes' Theorem CalculatorF-Test / F-Distribution CalculatorHypergeometric Distribution CalculatorNegative Binomial Distribution CalculatorGeometric Distribution CalculatorExponential Distribution CalculatorWeibull Distribution CalculatorBeta Distribution CalculatorSpearman Rank Correlation CalculatorFisher's Exact Test CalculatorContingency Table CalculatorOdds Ratio CalculatorBernoulli Equation CalculatorHeat Transfer CalculatorThermal Expansion CalculatorSpecific Heat Capacity CalculatorGear Ratio Calculator (Mechanical)Pulley System CalculatorHydraulic Cylinder Force CalculatorBelt Length CalculatorCloset Capsule CalculatorStorage Unit Size CalculatorMoving Box Quantity CalculatorGift Card Tip CalculatorGas vs Electric Cost ComparisonPrint Cost CalculatorHair Dye Mixing CalculatorLaundry Detergent Dosage CalculatorDishwasher Load OptimizerTile Grout CalculatorPaint Color Mixing CalculatorFlashcard Spaced Repetition SchedulerLearning Curve CalculatorCornell Notes GeneratorVocabulary Quiz GeneratorLanguage Learning Hours to Fluency CalculatorCollege Cost CalculatorScholarship ROI CalculatorAI Recipe Generator (From Ingredients)AI Gift Idea GeneratorAI Meal Plan GeneratorAI Workout Plan GeneratorAI Reading List GeneratorAI Travel Itinerary GeneratorAI Excuse Generator (Polite)AI Apology Letter WriterAI Unit Converter (Natural Language)AI Resume / CV AnalyzerAI Text Tone AnalyzerAI Data Visualizer (Paste CSV)AI Regex GeneratorAI SQL Query GeneratorPaycheck Calculator (Take-Home Pay)VA Loan CalculatorARM Mortgage CalculatorBiweekly Mortgage Payment CalculatorPMI CalculatorMortgage Points CalculatorBalloon Loan CalculatorInterest-Only Mortgage CalculatorConstruction Loan CalculatorLand Loan CalculatorBoat Loan CalculatorRV Loan CalculatorMotorcycle Loan CalculatorCar Affordability CalculatorOut-the-Door Price CalculatorRent Affordability CalculatorProrated Rent CalculatorRent Increase CalculatorMileage Reimbursement CalculatorPer Diem CalculatorInvoice GeneratorSalary Raise CalculatorSeverance Pay CalculatorHSA Calculator529 College Savings CalculatorI Bond CalculatorT-Bill CalculatorCD Ladder CalculatorCredit Utilization CalculatorLoan Comparison CalculatorGross-Up CalculatorSWP CalculatorRD CalculatorPPF CalculatorEPF CalculatorNPS CalculatorGratuity CalculatorHRA Exemption CalculatorUK Stamp Duty CalculatorZakat CalculatorTithe CalculatorBetting Odds ConverterPayPal Fee CalculatorStripe Fee CalculatorEtsy Fee CalculatoreBay Fee CalculatorAmazon FBA CalculatorShopify Profit CalculatorWholesale Price CalculatorCraft Pricing CalculatorDepreciation CalculatorEOQ CalculatorReorder Point CalculatorSafety Stock CalculatorFIFO / LIFO CalculatorContribution Margin CalculatorWorking Capital CalculatorCost Per Lead CalculatorEmail Marketing ROI CalculatorTip Pooling CalculatorWeek Number CalculatorAnniversary CalculatorHalf Birthday CalculatorSobriety CalculatorRetirement CountdownDate to Roman Numerals ConverterSunrise & Sunset CalculatorMoon Phase CalculatorNap CalculatorWorld ClockJulian Date ConverterISO 8601 Date FormatterChinese Gender PredictorImplantation CalculatorIVF Due Date CalculatorhCG Doubling Time CalculatorChild Height PredictorChild BMI Percentile CalculatorBaby Eye Color PredictorBaby Name GeneratorDiaper Size CalculatorBaby Milk Intake CalculatorCost of Raising a Child CalculatorEasy Grader (EZ Grader)CGPA to Percentage ConverterSAT Score CalculatorACT Score CalculatorAP Score CalculatorAttendance Percentage CalculatorPercentage to CGPA ConverterCitation Generator (APA/MLA/Chicago)AI Quiz GeneratorAI Lesson Plan GeneratorInteractive Periodic TableElectron Configuration CalculatorLimiting Reactant CalculatorTheoretical Yield CalculatorHenderson-Hasselbalch CalculatorpKa to Ka ConverterMolality CalculatorNormality CalculatorPercent Composition CalculatorFreezing Point Depression CalculatorBoiling Point Elevation CalculatorOsmotic Pressure CalculatorNernst Equation CalculatorBeer-Lambert Law CalculatorGravitational Force CalculatorEscape Velocity CalculatorKepler's Third Law CalculatorTime Dilation CalculatorE=mcยฒ CalculatorPhoton Energy Calculatorde Broglie Wavelength CalculatorTerminal Velocity CalculatorBuoyancy CalculatorWave Speed Calculator
×

Do us a favor and answer 3 quick questions

Thank you for participating in our survey. Your input will help us to improve our services.

Where exactly did you first hear about us?

What is your favorite tool on our site?

if Other, please specify:

How likely is it that you would recommend this tool to a friend?

NOT AT ALL LIKELYEXTREMELY LIKELY

Likely score: (1-10)