KML to GeoJSON
Convert a Google Earth KML file to GeoJSON. Preserves placemark names, descriptions, and geometry.
About KML to GeoJSON
KML to GeoJSON converts a Google Earth KML file into GeoJSON, preserving placemark names, descriptions, and geometry. Use it to bring map data out of Google Earth or My Maps and into web mapping libraries or GIS tools that speak GeoJSON. The conversion runs in your browser with no upload.
- Category
- convert
- Input
- Accepts: application/vnd.google-earth.kml+xml, application/xml, text/xml or text/plain.
- Output
- Outputs: application/geo+json.
- Cost
- Free, runs in your browser
- Memory
- low
Common uses
- Move a set of placemarks from Google My Maps into a Leaflet or Mapbox web map
- Convert a KML export so you can load it into QGIS or another GeoJSON-based GIS tool
- Pull named points and shapes out of Google Earth for analysis in a script
- Migrate a saved KML tour or route into GeoJSON for a web app
- Standardize mixed map exports on GeoJSON by converting incoming KML files
- Keep placemark titles and descriptions intact when moving data off Google Earth
Frequently asked questions
Does it keep my placemark names and descriptions?
Yes. Placemark names, descriptions, and geometry are preserved and carried into the GeoJSON output as feature properties and geometry.
What file types can I give it?
KML files (application/vnd.google-earth.kml+xml), as well as XML or plain-text KML. The output is GeoJSON (application/geo+json).
Is my map data uploaded?
No. The conversion happens locally in your browser, so your locations and notes never leave your device.
Can it handle a KMZ file?
KMZ is a zipped KML. Unzip it first to get the .kml file, then convert that. This tool takes the uncompressed KML.
Does it support lines and polygons, not just points?
Yes. Point, line, and polygon geometries from placemarks are converted to their GeoJSON equivalents.
Keywords
- kml
- geojson
- geo
- convert
- google earth
- gis
- map
- placemark