KML to GeoJSON Converter
Convert KML from Google Earth or Google My Maps to GeoJSON for Leaflet, Mapbox, QGIS and PostGIS. Free, instant, and private — nothing is uploaded.
Drop your KML file here
or
Converting…
Your file never leaves your browser
How to convert KML to GeoJSON
- Drop your KML file into the box above, or click to choose it from your device.
- The conversion runs instantly inside your browser. Nothing is uploaded.
- Click “Download GeoJSON” to save the converted file.
About the formats
- KML
.kml - KML (Keyhole Markup Language) is the XML format of Google Earth and Google My Maps. It describes placemarks, paths and polygons, and can carry timestamped tracks through the gx:Track extension.
- GeoJSON
.geojson - GeoJSON (RFC 7946) is the JSON format for geographic features used by web maps and GIS software such as Leaflet, Mapbox, QGIS and PostGIS. Coordinates are stored as longitude, latitude, elevation.
Frequently asked questions
How are KML geometries mapped to GeoJSON?
Points, LineStrings and Polygons (including holes) keep their type. A gx:Track becomes a LineString and a gx:MultiTrack a MultiLineString, with timestamps in properties.coordinateProperties.times. A MultiGeometry of mixed types becomes a GeometryCollection.
What happens to names, descriptions and styles?
Name, description, timestamps and ExtendedData fields become feature properties. Line and fill styles are written as simplestyle properties such as stroke, stroke-width, fill and fill-opacity, which geojson.io, Mapbox and GitHub understand.
What is not converted?
Network links are not followed, because this page cannot download anything; only their region outline and URL are kept. A ground overlay becomes a polygon of its footprint with the image URL in the icon property, but the image itself is not included. 3D models and tours are skipped. KMZ files must be unzipped first: rename to .zip, extract, and convert the doc.kml inside.
Are my files uploaded to a server?
No. The conversion runs entirely in your browser, and the page is not allowed to send your file anywhere. You can verify this in the Network tab of your browser’s developer tools: no request carries your file.
Is there a file size limit?
Files up to 200 MB are accepted. Because everything happens on your device, very large files are limited by your browser’s memory rather than by an upload quota.
Related tools
- GeoJSON to KML ConverterConvert GeoJSON from QGIS, geojson.io or Mapbox to KML for Google Earth and Google My Maps, keeping feature attributes. Free, instant, and nothing is uploaded.
- KML to GPX ConverterConvert KML from Google Earth or Google My Maps to GPX for Garmin, Komoot, Strava and other GPS devices and apps. Free, instant, and private — nothing is uploaded.
- GPX to KML ConverterConvert GPX tracks, routes and waypoints to KML for Google Earth and Google My Maps. Free, instant, and your file never leaves your browser.
- GPX to GeoJSON ConverterConvert GPX tracks, routes and waypoints to GeoJSON for Leaflet, Mapbox, QGIS and PostGIS. Free, instant, and your file never leaves your browser.