Map Grid Generator: Make a Square, Hexagon or Lat/Lon Grid Over Any Area

Draw an area on the map or open a GeoJSON or KML file. Pick the grid type and the cell size, and the grid appears at once. Turn it, label it, select cells and download it.

Map:
Draw an area, then change the grid below. The grid updates at once
Try:
Loading the map grid generator...
Need assistance with your GIS project?Explore Our Services
Four grid types
Squares, hexagons, triangles, or a latitude and longitude grid.
Fully adjustable
Cell size, angle, shift, edge handling, colors and labels, with a live preview.
Select and download
Click cells to select them. Download GeoJSON, KML or CSV.
Rate this tool:

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.

SquaresHexagonsTrianglesLat / lon
The four grid types. The dashed line is the area, and the green cells are the grid, cut at the edge.
  • 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.
The grid shapes compared (cell width of 1 km, and the outline of a cell that covers 1 km²)
ShapeEdge neighborsArea at 1 km width (km²)Outline for 1 km² (km)Good for
Squares41.004.00Surveys, indexes, anything on a map sheet or in a spreadsheet.
Hexagons60.8663.72Spread of data and travel from a cell, because all neighbors are the same distance away.
Triangles30.4334.56Terrain surfaces and special layouts.
Latitude / longitude4--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:

Square: columns x rows of cells, each width x height
Hexagon: rows of hexagons, every second row shifted by half a cell
Triangle: rows of up and down triangles, every second row shifted by half a side
Lat/lon: the same as squares, but the plane is longitude and latitude

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.

Number of square cells needed to cover an area: area divided by cell width squared
Area10 m50 m100 m500 m1 km
1 ha1004.01.00.00.0
10 ha1,00040100.40.1
1 km²10,0004001004.01.0
10 km²100,0004,0001,0004010
100 km²1,000,00040,00010,000400100
1,000 km²10,000,000400,000100,0004,0001,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:

The same circle (radius 500 m, area 78.4 ha) covered by 100 m squares with each edge setting
Cells at the edgeCellsArea of the cells (ha)
Keep every cell that touches the area8888.0
Keep only cells fully inside6060.0
Cut cells at the area edge8878.4
Cover the whole box of the area100100.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.

Width of a longitude cell by latitude (the height of one degree of latitude is always 111.2 km)
Latitude1° of longitude (km)0.1° of longitude (km)1 arc-minute (km)
0°111.211.121.85
20°104.510.451.74
40°85.28.521.42
60°55.65.560.93
80°19.31.930.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.

Typical cell sizes for common tasks (examples only)
UseTypical cell sizeNote
Wildlife or plant survey100 m to 1 kmCount what you see in each cell.
Search and rescue100 m to 500 mGive one cell to each team.
Garden or field plots1 m to 10 mUse the satellite view and a small area.
Drone flight blocks100 m to 500 mOne block for each battery or flight.
Sales or service areas500 m to 5 kmHexagons make fair, equal areas.
Event or campus map25 m to 100 mLabels like A1 help people find a place.
Soil or water sampling50 m to 500 mOne sample point at the center of each cell.
Map index for a region5 km to 50 kmSquares 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

1Draw the area

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.

Draw the area
2Pick the grid and the cell size

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.

Pick the grid and the cell size
3Adjust the grid

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.

Adjust the grid
4Select cells and download

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

Select cells and download

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.

Frequently asked questions

What is a map grid generator?

A map grid generator covers an area with a regular pattern of cells, such as squares or hexagons. Each cell has a position, a label and an area. People use grids to split a survey into parts, to count things per cell, to plan a search and to make a map index.

How do I make a grid on a map?

Choose Rectangle, click two opposite corners on the map, and the tool makes a grid at once. The first grid has about ten cells across. Type another cell size, or choose the number of columns and rows, to change it.

How do I make a hexagon grid?

Pick "Hexagons" as the grid type and type the cell width, measured from one flat side to the opposite flat side. A hexagon with a width of 1 km covers 0.87 km², which is 86.6 hectares. You can choose pointy or flat tops.

Can I make a grid by the number of cells instead of the size?

Yes. For squares, choose "By number of cells" and type the columns and rows. The tool splits the box of your area into that many equal cells. A 5 km x 3 km area with 500 m cells gives 10 columns x 6 rows, which is 60 cells.

What does "Cells at the edge" do?

It decides what happens to cells that the edge of your area crosses. "Keep every cell that touches the area" keeps whole cells. "Keep only cells fully inside" drops the cells on the edge. "Cut cells at the area edge" trims them to the shape. "Cover the whole box" ignores the shape and fills the box.

How do I turn the grid so it follows a road or a field?

Use the rotation slider, from -90 to 90 degrees. The grid turns around the middle of your area. Use "Shift sideways" and "Shift up" to move the grid lines by a part of a cell.

How are the cells named?

You can choose a letter and number like A1 and B1, row and column like R2C3, plain numbers, or the center coordinates. Column AA comes after column Z. You can start counting from any of the four corners, and number along the rows or down the columns.

Can I select some cells and download only those?

Yes. Press "Select cells" and click cells on the map. They turn orange, and the tool shows how many you picked and their total area. Tick "Download only the selected cells" before you download.

What is a latitude and longitude grid?

It is a grid with cells of equal degrees, such as 0.1 degree. The cells are not equal in meters: one degree of latitude is always about 111.2 km, but one degree of longitude is 85.2 km at latitude 40 and 55.6 km at latitude 60. Use it to match data that is stored by degree.

Which file formats can I download?

GeoJSON, KML and CSV. GeoJSON and KML hold the cell shapes with the label, row, column, area and center. The CSV is a table with the same values and no shapes. You can also export only the cell centers as points.

Why do I get a message that the grid has too many cells?

The tool makes up to 20,000 cells. A 10 m grid over a few kilometers gives more than that. Use a bigger cell size or a smaller area.

How accurate are the cell sizes?

The tool lays the grid on a flat plane centered on your area, and measures the area of each cell on the sphere. For areas up to a few hundred kilometers wide, the cell sizes are right to a fraction of a percent.

Can I use the grid in QGIS or ArcGIS?

Yes. Download GeoJSON and open it in QGIS, ArcGIS or any GIS program. The fields id, label, row, col, area_m2, center_lat and center_lon come with every cell. To see it in Google Earth, download KML.

Is my data sent to a server?

No. The grid is made in your browser, and a file you open stays in your browser. Only the address search sends the text you type to a search service.

Is the Map Grid Generator free?

Yes. It is free, it needs no account, and you can use it as often as you like.