Random Geometry Generator

Generate random points, lines, and polygons within any bounding box. Download as GeoJSON, KML, or GPX.

Maximum 500 features per type.

Powered by Turf.js and GDAL WebAssembly. All processing happens in your browser.

What is the Random Geometry Generator?

The Random Geometry Generator creates random point, line, and polygon features within a bounding box you specify. You can draw the bounding box on the map or enter coordinates directly. The result is a GeoJSON, KML, or GPX file containing the specified number and type of features.

Generated features are fully valid GIS geometries — lines are polylines with multiple vertices, polygons are closed and non-self-intersecting. All coordinates are in WGS 84 (EPSG:4326). The tool runs entirely in the browser using Turf.js; no data is sent to a server.

Common use cases

Testing spatial analysis pipelines

Generate realistic spatial data to test buffer, dissolve, clip, or overlay operations without needing real datasets.

Performance benchmarking

Create large point clouds or polygon datasets to benchmark rendering performance in web maps or spatial databases.

Demo and tutorial data

Populate a demo map or workshop example with placeholder features that look realistic but carry no sensitive information.

Monte Carlo spatial simulation

Generate multiple random point distributions to simulate probabilistic spatial processes like rainfall or species occurrence.

Frequently asked questions

What coordinate system are the generated features in?

All generated features use WGS 84 geographic coordinates (longitude, latitude), which is the standard for GeoJSON, KML, and GPX. The bounding box you draw or enter is also in WGS 84.

Are the generated geometries truly random?

Points are placed at uniformly random positions within the bounding box. Lines and polygons are also generated randomly but with constraints to ensure they are valid geometries (e.g., polygons are closed and non-self-intersecting).

Can I generate a fixed, reproducible dataset?

Each generation run produces a different result. If you need a reproducible dataset, download and save the output — the same file can be re-uploaded to other tools for consistent testing.

What is this tool useful for?

It is primarily used for testing spatial analysis pipelines, populating demo maps, benchmarking rendering performance, and generating sample data for tutorials or workshops without needing real data.