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
- Enter the latitude and longitude for the first corner. Decimal degrees or DMS strings are both accepted.
- Add a row for each remaining corner, going around the perimeter in order rather than jumping across the shape.
- Use the reorder arrows and remove buttons to fix any rows that are out of sequence.
- Optionally set a name, a line colour and a fill colour in KML's
aabbggrrhex format. - 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:
| Mistake | Result | Fix |
|---|---|---|
| Vertices out of order | Self-intersecting "bow-tie" shape | List corners in perimeter order |
| Fill at full opacity | Overlay hides the map beneath | Use a low alpha like 4d for the fill |
| Swapped lat/long | Polygon lands in the wrong place | Latitude first, then longitude |
| Manually repeating the first point | Duplicate closing vertex | Let 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
aabbggrrformat 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
- KML Circle Generator β draw a radius ring around a point.
- GeoJSON to KML Converter β convert GeoJSON features to KML.
- KML to GeoJSON Converter β go the other way for web maps.
- Coordinate Converter β switch between decimal degrees and DMS.
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.
Recommended reading
KML Polygon Best Practices and Pitfalls to Avoid
Pro tips for building clean KML polygons: vertex ordering, avoiding bow-ties, aabbggrr colors, DMS precision and fixing polygons that render wrong.
KML Polygon Use Cases: From Property Lines to Geofences
Real-world uses for a KML polygon generator: property boundaries, drone geofences, farm fields and delivery zones, with concrete worked examples.
KML Circle Best Practices: Pro Tips and Mistakes
Expert tips for generating accurate KML radius circles: segment counts, aabbggrr colors, high-latitude fixes and the mistakes that ruin a Google Earth ring.
XOR Cipher Use Cases: CTFs, Learning, and Puzzles
Real use cases for the XOR cipher, from CTF challenges and teaching bitwise logic to lightweight obfuscation, with concrete worked examples.