New: Screen RecorderScreen + webcam, trim, save as MP4Try it now →

Add tools here by clicking the star icon.
Back to tools

GeoJSON Polygon Example & Generator

Polygons describe areas: parcels, zones, geofences. Draw one on the map to get valid GeoJSON — closed rings, right winding order and holes included — with its area measured automatically.

Loading map editor…

What is a GeoJSON Polygon?

A Polygon is an array of linear rings. The first ring is the outer boundary; any further rings are holes. Each ring is closed: its last position repeats the first.

{
  "type": "Feature",
  "geometry": {
    "type": "Polygon",
    "coordinates": [
      [[-73.9819, 40.7681], [-73.9737, 40.7644], [-73.9498, 40.7968], [-73.958, 40.8006], [-73.9819, 40.7681]],
      [[-73.9665, 40.7838], [-73.965, 40.788], [-73.9585, 40.789], [-73.959, 40.7835], [-73.9665, 40.7838]]
    ]
  },
  "properties": { "name": "Central Park (approximate)" }
}

Rules worth knowing

  • At least 4 positions per ring (3 corners + the repeated first point).
  • Winding order: RFC 7946 recommends counterclockwise outer rings and clockwise holes. Shapes drawn here follow that rule; the validator tells you when imported data doesn't and can fix it.
  • Holes: use the Cut tool to cut a hole (or a piece) out of a polygon you've drawn.
  • Several areas in one feature are a MultiPolygon. The editor displays, edits and exports those too, and can split them into separate polygons.

How to use it

  1. The Polygon tool is active: click to add corners, then click the first point (or press Finish / Enter) to close the shape.
  2. Prefer a regular shape? Use Rectangle or Circle (circles are saved as 64-point polygons).
  3. Use Cut to cut a hole out of a polygon. Select a polygon to drag its vertices or move it.
  4. Copy the GeoJSON from the GeoJSON tab or export GeoJSON, KML, Shapefile or WKT.

Common Use Cases

  • Service areas and delivery zones
  • Geofences for apps
  • Parcels, fields and zoning
  • Test polygons for spatial queries

Frequently Asked Questions

How do I close the polygon?
Click the first point again, press Enter, or press Finish in the bar at the bottom of the map. You need at least three corners.
Can I make a polygon with a hole?
Yes. Draw the polygon, then choose Cut and draw the hole inside it. Imported polygons keep their holes too.
Why does my exported polygon repeat the first coordinate?
GeoJSON requires closed rings: the last position must equal the first. That’s correct, not a bug.

Why use this tool?

  • Closed rings and RFC 7946 winding
  • Holes and multipolygons supported
  • Area and perimeter measured live
  • Undo/redo and autosave

Privacy

Your shapes and files stay in your browser — nothing is uploaded. Map tiles come from OpenStreetMap or Esri, and place searches go to OpenStreetMap Nominatim.

How was this tool?

Your feedback helps us make it better.

Have further opinions? Email me at hello@everythingbagel.app