BYTETOOLS

Create a KML Polygon From Coordinates for Google Earth

To create a KML polygon from coordinates, enter each corner's latitude and longitude in perimeter order, generate the KML, and open the downloaded file in Google Earth or Google My Maps. When you already have surveyed corner points, typing them into a generator is far faster and more precise than clicking around a map by hand.

This tutorial covers building the ring, why the first point repeats at the end, how vertex order affects the shape, and how to colour the fill so your boundary reads clearly on the map.

Who needs a KML polygon generator

A polygon defines an area rather than a point or a line, which makes it the right shape for property and lease boundaries, agricultural fields, drone geofences, and zone overlays. If you have corner coordinates from a survey document or a spreadsheet but no GIS software installed, a browser generator turns those numbers into a valid, styled overlay you can share or import anywhere KML is supported.

How to build a KML polygon in your browser

  1. Enter the latitude and longitude for the first corner. Decimal degrees or DMS strings are both accepted.
  2. Add a row for each remaining corner, going around the perimeter in order rather than jumping across the shape.
  3. Use the reorder arrows and remove buttons to fix any rows that are out of sequence.
  4. Optionally set a name, a line colour and a fill colour in KML's aabbggrr hex format.
  5. Click Generate KML, then download the .kml or copy the markup. The ring is closed for you automatically.

Common polygon mistakes and how to avoid them

Most bad-looking polygons come from a handful of predictable errors. This table shows what goes wrong and the fix:

MistakeResultFix
Vertices out of orderSelf-intersecting "bow-tie" shapeList corners in perimeter order
Fill at full opacityOverlay hides the map beneathUse a low alpha like 4d for the fill
Swapped lat/longPolygon lands in the wrong placeLatitude first, then longitude
Manually repeating the first pointDuplicate closing vertexLet the tool close the ring

The KML specification requires the last coordinate of a linear ring to equal the first, and this generator appends that closing point automatically β€” so you only enter each corner once.

Key features

  • Unlimited vertex rows with add, remove and reorder controls.
  • Ring closed automatically to satisfy 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 and offline-capable β€” boundary data never leaves your browser.

Try the KML Polygon Generator now β€” it's free and runs entirely in your browser.

Frequently asked questions

How do I create a polygon in Google Earth from coordinates?

Enter each corner's latitude and longitude here in order, generate the KML, and open the file in Google Earth. This is more precise than clicking points by hand when you already have exact coordinates.

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

No. The generator closes the ring for you by appending the first vertex, which is exactly what the KML spec requires. Adding it yourself would create a duplicate point.

Does vertex order matter?

Yes for the shape. Vertices must follow the perimeter; jumping across the polygon produces a self-intersecting figure that fills unpredictably. Outer boundaries are conventionally listed counter-clockwise.

How many vertices can a KML polygon have?

There is no formal limit, and Google Earth renders thousands of vertices comfortably. For hand-entered boundaries a few dozen is usually plenty; for very dense outlines, converting an existing file is easier than typing.

Can I use the polygon in Google My Maps?

Yes. In My Maps choose Import on a layer and select the .kml. The polygon appears with its name, and you can restyle its colours inside My Maps. The same file also works in QGIS and ArcGIS.

Related free tools

Built by ByteVancer

ByteTools is a free product of ByteVancer, a software and web development studio that builds web apps, SaaS platforms and custom software for businesses. Need a mapping or GIS feature built into your product? Explore ByteVancer's services or reach out to start a project.