Convert KML to GeoJSON
MapGeoData converts KML and KMZ to GeoJSON right in your browser. Drop in your .kml or .kmz file, see it on the map, and download a clean .geojson file. It's free, needs no account, and there's nothing to install.
Convert KML to GeoJSON in your browser
MapGeoData turns a KML or KMZ file into GeoJSON without Google Earth or any
desktop GIS. Drop your .kml or .kmz onto the map, confirm it looks right,
and export a single .geojson file. The conversion runs locally, with no
account and nothing to install.
Why convert KML to GeoJSON
KML is the format Google Earth writes, and it's verbose XML built around that one tool. GeoJSON is plain JSON that the rest of the web understands:
- Web-friendly. GeoJSON drops straight into Leaflet, Mapbox, OpenLayers, deck.gl, and most mapping APIs. KML mostly doesn't.
- Human-readable. It's just JSON, so you can open it in any text editor and read the coordinates and properties.
- Lighter. No XML wrapper, no styling tags mixed in with the geometry.
How to convert (3 steps)
- Add your KML. Drag your
.kmlor.kmzonto the page, or use the Convert a file button if you'd rather not add it to the map. - Preview it. Your placemarks render on the map so you can confirm the shapes and data before exporting.
- Export as GeoJSON. Choose GeoJSON from the export options and download the file.
What happens to your placemark data
Placemarks carry their information across. A placemark's name and description become properties, and any ExtendedData fields you added come through with their own names and values. Points, paths, and polygons all convert to the matching GeoJSON geometry, including placemarks tucked inside folders and multi-geometry placemarks. Because KML is already in WGS84 lon/lat, the coordinates need no reprojection, so the shapes land exactly where the original did.
When you're ready, you can also send the same data out as CSV, a Shapefile ZIP, or FlatGeobuf from the same export menu.