KML to GeoJSON Converter

Google Earth and My Maps places, routes and areas as standard GeoJSON features.

Reverse: GeoJSON to KML

Files never leave your device — everything runs in your browser

KML is the format of Google Earth and Google My Maps, while web maps, GIS tools and most APIs work with GeoJSON. The converter reads a KML file and writes a FeatureCollection: every Placemark becomes a feature, points stay points, paths become LineStrings and areas become Polygons with their holes; MultiGeometry turns into a geometry collection.

Names, descriptions and ExtendedData go into the feature properties, and style colours and widths are kept as properties too, so the map can be styled the same way. Coordinates follow the GeoJSON order — longitude, latitude, altitude.

Folders and nested documents are read in full. A KMZ file is a ZIP archive with doc.kml inside: unzip it first and load the KML. Broken XML is reported with line and column.

Nothing is uploaded: everything runs inside your browser, so API responses, configs, contact lists and datasets stay on your device.

What is converted

How to convert KML to GeoJSON in 3 steps

  1. 1

    Load the KML

    Export from Google Earth or My Maps, open the .kml file or try the Sample.

  2. 2

    Check the result

    The GeoJSON preview shows features with their properties.

  3. 3

    Download the GeoJSON

    Use it in Leaflet, Mapbox, QGIS or any GeoJSON tool.

Frequently asked questions

Load the .kml file; the GeoJSON is ready immediately to preview and download.
KMZ is a ZIP archive. Unzip it, take doc.kml from inside and load that file.
Yes, the description and every ExtendedData value become properties of the feature.
Use GeoJSON to KML; it writes a file that opens in Google Earth.

Related tools