BYTETOOLS

KML Polygon Generator

Create a KML polygon from latitude/longitude vertices with custom fill and line colors, then download the KML file for Google Earth or Google Maps.

Vertices (in perimeter order — the ring is closed automatically)
1.
2.
3.

What is the KML Polygon Generator?

The KML Polygon Generator turns a list of latitude/longitude vertices into a valid KML polygon. Add as many vertex rows as you need, reorder or remove them, and the tool automatically closes the ring (KML requires the last coordinate to repeat the first).

  • Unlimited vertex rows with add, remove and reorder
  • Ring closed automatically per the KML spec
  • Accepts decimal degrees or DMS per vertex
  • Line and fill colours in KML aabbggrr format with hints
  • Valid .kml download for Google Earth and My Maps
  • 100% private — boundary data never leaves your browser

How to use the KML Polygon Generator

  1. 1

    Enter the latitude and longitude for each corner of your polygon.

  2. 2

    Use Add vertex, the arrows and Remove to build the ring in order.

  3. 3

    Set an optional name, line colour and fill colour (aabbggrr hex).

  4. 4

    Click Generate KML, then download the .kml or copy the markup.

About the KML Polygon Generator

The KML Polygon Generator turns a list of latitude/longitude vertices into a valid KML polygon. Add as many vertex rows as you need, reorder or remove them, and the tool automatically closes the ring (KML requires the last coordinate to repeat the first). Give the polygon a name and set line and fill colours in KML's aabbggrr format with the built-in helper.

It suits anyone who has corner coordinates but no GIS software: marking property or lease boundaries from a survey document, defining drone geofences, sketching agricultural fields, or building zone overlays for Google My Maps. Coordinates accept decimal degrees or DMS strings.

Everything is generated locally in your browser and downloaded as a .kml file — no account, no upload, no server-side processing of your boundary data.

Frequently asked questions

How do I create a KML file from coordinates?

Enter each corner's latitude and longitude in order, click Generate KML, and download the file. Opening it in Google Earth or Google My Maps draws your polygon exactly where the surveyed coordinates fall — faster and more precise than clicking points by hand.

Do I need to repeat the first point to close the polygon?

No — this generator closes the ring for you. The KML specification requires the linear ring's last coordinate to equal its first, so the tool appends the first vertex automatically when it builds the file.

Does vertex order matter?

The outline renders either way, but convention (and the KML spec) is counter-clockwise for outer boundaries. What matters most is that vertices are in perimeter order — jumping across the shape creates a self-intersecting "bow-tie" polygon that fills unpredictably.

How do KML colors work?

KML uses eight hex digits in aabbggrr order — alpha, blue, green, red — the reverse of the familiar web RRGGBB. So opaque red is ff0000ff and 50%-transparent green is 7f00ff00. Use ff for a solid line and something like 4d (30%) for a subtle fill.

How many vertices can a KML polygon have?

There is no formal limit, and Google Earth comfortably renders polygons with thousands of vertices. For hand-entered boundaries you rarely need more than a few dozen; if you have very dense outlines, converting an existing file with the GeoJSON to KML tool is easier than typing.

Can I use this polygon in Google My Maps?

Yes. In My Maps choose Import on a layer and select the downloaded .kml — the polygon appears with its name, and you can restyle the colours inside My Maps afterwards. The same file also works in QGIS, ArcGIS and Leaflet (after KML-to-GeoJSON conversion).

Guides for KML Polygon Generator

Related tools