KML to GeoJSON Converter

Convert a Google Maps or Google Earth export to GeoJSON in one step. A live map preview shows your points, lines, and polygons before you download. No command line, no account.

KML input ? KMZ input ? GeoJSON output ? Live map preview Copy to clipboard

Drop your KML or KMZ file here

or

.kml and .kmz accepted - converted locally, nothing uploaded

How to convert KML to GeoJSON

  1. Export your map from Google Maps ("Download your data") or Google Earth as KML or KMZ
  2. Drop the file onto the upload area above
  3. Adjust coordinate precision and output format as needed
  4. Copy to clipboard, open directly in geojson.io, or download the .geojson file

What geometry types are supported?

  • Points - placemarks, saved pins, named locations
  • Lines - routes, paths, LineString elements from Google Earth
  • Polygons - areas, boundaries, regions with inner rings
  • MultiGeometry - collections of mixed geometry types in one placemark
  • Folders - nested KML folder structures are flattened into one FeatureCollection
  • KMZ - compressed KML archives are extracted and parsed automatically
  • ExtendedData - custom properties and SimpleData fields are preserved

Learn more: KML, GeoJSON, and geographic data formats

Why convert KML to GeoJSON - understanding format differences

KML (Keyhole Markup Language) is an XML-based format created by Google for Google Earth and Google Maps. It is hierarchical, verbose, and designed for visual representation. GeoJSON is a JSON-based format that is modern, compact, and designed for web applications and geospatial analysis. Every current web mapping library (Leaflet, Mapbox GL, deck.gl, Turf.js) uses GeoJSON natively. If you want to build a web map or use modern geospatial tools, you need GeoJSON, not KML.

How to export from Google Maps and Google Earth

In Google Maps on desktop, open the custom map or saved places list you want to export, click the three-dot menu, and select Export to KML. Google Earth exports in KMZ format (KML compressed as ZIP) by default. Both formats can be dropped directly into this converter. The converter automatically extracts the KML from KMZ archives and converts all features - points, lines, polygons, and all properties - to standard GeoJSON FeatureCollection format.

Using converted GeoJSON in web maps and geospatial tools

The output GeoJSON FeatureCollection is fully compatible with Leaflet (use L.geoJSON()), Mapbox (addSource()), and any GeoJSON-compatible library. You can paste it directly into the Mapbox Studio style editor, load it into QGIS, process it with Turf.js, or store it in a database that supports GeoJSON. The converter preserves all geometry types (Point, LineString, Polygon, MultiPoint, etc.) and all properties from the original KML, so you do not lose any information in the conversion.

FAQ

How do I export my Google Maps saved places as KML?

In Google Maps on desktop, click the three-bar menu, choose 'Your places', find the custom map you want to export, click the three-dot menu next to it, and select 'Export to KML'. Drop the downloaded file into this converter.

What is the difference between KML and GeoJSON?

KML is Google's XML format. GeoJSON is a JSON format used by Leaflet, Mapbox, deck.gl, and most modern mapping libraries. If you're building a web map, GeoJSON is almost certainly what you need.

Does this work with KMZ files?

Yes. KMZ is a ZIP archive containing KML. This converter handles KMZ automatically by extracting and converting the KML inside.

Last reviewed: May 31, 2026