Sample KML files
KML 2.2 files: one Placemark per large US airport with scheduled service, each with its IATA code, name and coordinates (OurAirports, public domain), and a made-up line and polygon near Denver. Free, no sign-up. Updated 19 November 2026.
What these files are
KML 2.2 files: one Placemark per large US airport with scheduled service, each with its IATA code, name and coordinates (OurAirports, public domain), and a made-up line and polygon near Denver.
Every file was generated by our own code, so nothing in them is copied from anyone, and we release them under CC0: use them for anything. The facts in the table were read back from each file after it was written, not typed in by hand.
About the format
KML (Keyhole Markup Language) is an XML format that began with Google Earth and became an OGC standard in 2008. Coordinates are written longitude,latitude,altitude separated by commas, with no spaces inside one point. A .kmz file is the same KML zipped together with any images it uses.
These files open in Google Earth, Google My Maps and QGIS. A web server should send them with the header Content-Type: application/vnd.google-earth.kml+xml.
2 files to download
| File | Size | What it is |
|---|---|---|
| sample-us-airports.kml | 15 KB | 95 Placemarks (points) for large US airports, KML 2.2 placemarks: 95 |
| sample-line-polygon.kml | 1 KB | one LineString (40 points) and one Polygon, the same made-up shapes as the GeoJSON sample placemarks: 2 |
MIME type: application/vnd.google-earth.kml+xml. Total 17 KB.
Good for testing
- Google Earth and My Maps imports
- KML to GeoJSON conversion
- XML parsing with a namespace
Check a file
grep -c '<Placemark>' sample-us-airports.kmlCompare the SHA-256 checksum to make sure the download is complete and unchanged (sha256sum file on Linux, shasum -a 256 file on macOS, certutil -hashfile file SHA256 on Windows):
| File | SHA-256 |
|---|---|
| sample-us-airports.kml | 4030209c5e7598d3f94b9b6bb97c9c1a7a0b522f9cb8fb96a9de42259b5f33f2 |
| sample-line-polygon.kml | 9549d0a2f0aa82610852261c38b7353fc66a860d878af03ab116bfe819a4c775 |