Map Grid Generator: Make a Square, Hexagon or Lat/Lon Grid Over Any Area
What This Map Grid Generator Does
This tool covers an area with a grid. You draw a rectangle or a polygon on the map, or open a GeoJSON or KML file. You choose the grid type and the size of the cells, and the grid is drawn at once. Every change, such as a new size or a new angle, updates the map without a button.
Use it to split a survey area into parts, to number the blocks of a search, to make a map index with labels like A1 and B2, to build a hexagon grid for analysis, or to make a fishnet layer for a GIS project. You do not need to install software or have an account.
Grid Types: Squares, Hexagons, Triangles and Lat/Lon
The four grid types cover the same area in different ways.
- Squares and rectangles are the usual choice. Type one width, or untick "Square cells" to give a different height.
- Hexagons have six neighbors at the same distance. A hexagon grid is good for spreading data and for fair comparisons.
- Triangles tile the area with equilateral triangles of the side you choose.
- Latitude and longitude cells have equal degrees, so they match files that are stored by degree.
| Shape | Edge neighbors | Area at 1 km width (km²) | Outline for 1 km² (km) | Good for |
|---|---|---|---|---|
| Squares | 4 | 1.00 | 4.00 | Surveys, indexes, anything on a map sheet or in a spreadsheet. |
| Hexagons | 6 | 0.866 | 3.72 | Spread of data and travel from a cell, because all neighbors are the same distance away. |
| Triangles | 3 | 0.433 | 4.56 | Terrain surfaces and special layouts. |
| Latitude / longitude | 4 | - | - | Data stored by degree, such as weather and climate files. |
What You Get
- A live grid on the map, with the number of cells, the size of one cell and the total area.
- Labels in the style you choose: A1, R1C1, plain numbers or the center coordinates.
- Selection: click cells to pick them, and see the area of the selection.
- Downloads in GeoJSON, KML and CSV, a copy of the GeoJSON, and a link that opens the same grid for someone else.
How the Grid Is Made
The tool lays your area on a flat plane centered on it, so distances near the center are true. It turns the area by the grid angle and builds the cells from the lower left corner of the area box, plus the shift you set:
A cell far from the edge of the area is kept or dropped as a whole. Only the cells that the edge crosses are cut. The area of every cell is then measured on the sphere.
How Many Cells Do You Need?
For square cells, the number of cells is about the area divided by the width squared. A 1 km x 1 km area with 100 m cells needs 100 cells. The same area with hexagons of 100 m width needs 137 cells, and with triangles of 100 m sides it needs 252. The table shows how fast the number grows when the cells get smaller.
| Area | 10 m | 50 m | 100 m | 500 m | 1 km |
|---|---|---|---|---|---|
| 1 ha | 100 | 4.0 | 1.0 | 0.0 | 0.0 |
| 10 ha | 1,000 | 40 | 10 | 0.4 | 0.1 |
| 1 km² | 10,000 | 400 | 100 | 4.0 | 1.0 |
| 10 km² | 100,000 | 4,000 | 1,000 | 40 | 10 |
| 100 km² | 1,000,000 | 40,000 | 10,000 | 400 | 100 |
| 1,000 km² | 10,000,000 | 400,000 | 100,000 | 4,000 | 1,000 |
The tool makes up to 20,000 cells. If you ask for more, it tells you and shows no grid until you choose a bigger cell size or a smaller area.
Cells at the Edge of the Area
Few areas are made of whole cells. You choose what to do with the cells on the edge:
| Cells at the edge | Cells | Area of the cells (ha) |
|---|---|---|
| Keep every cell that touches the area | 88 | 88.0 |
| Keep only cells fully inside | 60 | 60.0 |
| Cut cells at the area edge | 88 | 78.4 |
| Cover the whole box of the area | 100 | 100.0 |
Keeping whole cells gives a grid that is a little larger than the area. Cutting the cells gives a grid that has exactly the area of your shape, which is useful when you need the area of each part. Keeping only inside cells gives the largest grid of whole cells that fits in the area.
Rotation and Shift
The rotation slider turns the grid around the middle of the area, from -90 to 90 degrees. Use it to line the grid up with a field, a road or a building. A turned grid needs more cells to cover the box: the 1 km square above gives 127 cells when it is turned by 30 degrees, and 75 cells when you keep only the cells inside.
The shift sliders move the grid lines by a part of a cell, in steps of 5 percent. Use them when you want a grid line to fall on a road or on the middle of a field.
Latitude and Longitude Grids
A latitude and longitude grid uses degrees. A cell of 0.1 degree is always about 11.1 km high, but its width gets smaller toward the poles, because the lines of longitude come together. At latitude 40 one degree of longitude is 85.2 km, and at latitude 60 it is 55.6 km. If you need cells of equal size in meters, use squares.
| Latitude | 1° of longitude (km) | 0.1° of longitude (km) | 1 arc-minute (km) |
|---|---|---|---|
| 0° | 111.2 | 11.12 | 1.85 |
| 20° | 104.5 | 10.45 | 1.74 |
| 40° | 85.2 | 8.52 | 1.42 |
| 60° | 55.6 | 5.56 | 0.93 |
| 80° | 19.3 | 1.93 | 0.32 |
Labels and Numbering
Labels appear on the map when the cells are big enough to hold them. Zoom in to see them. In the 5 km x 3 km example above, the last cell is J6. Choose where the count starts (any of the four corners), and for plain numbers choose whether to count along the rows or down the columns. The same labels are in the downloads.
Typical Grid Sizes
There is no single right cell size. It depends on the task and on how much detail you need. These ranges are only a start.
| Use | Typical cell size | Note |
|---|---|---|
| Wildlife or plant survey | 100 m to 1 km | Count what you see in each cell. |
| Search and rescue | 100 m to 500 m | Give one cell to each team. |
| Garden or field plots | 1 m to 10 m | Use the satellite view and a small area. |
| Drone flight blocks | 100 m to 500 m | One block for each battery or flight. |
| Sales or service areas | 500 m to 5 km | Hexagons make fair, equal areas. |
| Event or campus map | 25 m to 100 m | Labels like A1 help people find a place. |
| Soil or water sampling | 50 m to 500 m | One sample point at the center of each cell. |
| Map index for a region | 5 km to 50 km | Squares with letters and numbers. |
Files: Open and Download
You can open GeoJSON (.geojson, .json) and KML files. The tool reads the polygons in them, including polygons with holes and multi-part shapes, and makes one grid over all of them.
You can download the grid as GeoJSON or KML, with the label, row, column and area of every cell, or as a CSV table. Tick "Export the cell centers as points" for a point layer instead of cells. Open the files in Google Earth, QGIS or any GIS program. To see a file again, use the KML Viewer.
How to use the Map Grid Generator
Choose Rectangle and click two corners, or choose Polygon and click the corners of the shape. You can also press "Use map view" or open a GeoJSON or KML file.

Choose squares, hexagons, triangles or a latitude and longitude grid. Type the cell size, or choose the number of columns and rows. The tool picks a round size to start.

Turn the grid with the angle slider, shift it, and choose what happens at the edge of the area. Change the colors and the labels until it looks right.

Click "Select cells" and click cells on the map to pick some of them. Then download the grid as GeoJSON, KML or CSV.

Assumptions and Limits
- The grid is made on a flat plane centered on your area, and the area of every cell is measured on a sphere with the Earth radius of 6,371 km. The result is accurate to a fraction of a percent for areas up to a few hundred km wide. For a legal survey, use survey data and a GIS with the right projection.
- The grid is not tied to a map projection, so its lines do not match the grid of a particular map sheet or coordinate system such as UTM.
- A very detailed outline is simplified to about 0.5 percent of the cell size before the cells are cut. This does not change the grid in a way you can see.
- To measure an area without a grid, use the Area Calculator. To draw a zone around a shape, use the Buffer Zone Generator.