Convertur

Convert KML to GeoJSON

Convert KML to GeoJSON online. Turn placemarks, paths and polygons into a FeatureCollection for Leaflet, Mapbox and QGIS. No upload.

Loading tool...

What is KML?

KML is the XML format Google Earth uses for placemarks, paths and shaded polygons. It holds a lot of detail but is awkward to use in web map code.

Why convert KML to GeoJSON?

Most web maps and GIS tools work with GeoJSON. Converting KML gives you data you can draw in Leaflet or Mapbox and process with any JSON tool.

How to convert KML to GeoJSON

Drop a .kml file above and press Convert. togeojson reads it in your browser and turns every placemark into a Point, LineString or Polygon feature, with MultiGeometry kept as a geometry collection. Names, descriptions, extended data and style colors are copied into each feature's properties. Download the .geojson file for Leaflet, Mapbox, QGIS or geojson.io.

Get a KML file

Export a map from Google My Maps with Export to KML/KMZ and tick the .kml option, or save a place or folder from Google Earth Pro as KML. Government open data portals often publish boundaries as KML too. A KMZ is a zipped KML, so unzip it first and convert the .kml inside.

Before you start

Input: KML. Output: GeoJSON. The settings appear before anything runs, so you can check them first. Your original file is never changed.

These formats often follow rules set by one app or device. Test the result where it will be used, and keep the source in case you need to export it again.

Keep the original until you have opened and checked the result. The work happens in this browser tab, so the size you can handle depends on your device's memory, your browser and the file itself.

Steps to convert KML to GeoJSON

  1. Drop a .kml file into the zone above.
  2. Convertur turns the placemarks and paths into features.
  3. Press Convert. Processing stays on your device.
  4. Download the .geojson file for your map or GIS project.

Last updated · How we build and check tools · Report an error

Learn more

Related tools

KML to GeoJSON FAQ