Convert KMZ to GeoJSON

This converter unpacks a Google Earth KMZ and turns the placemarks of the KML inside into GeoJSON, with names, descriptions and ExtendedData fields kept as properties. The file is converted in your browser and is not uploaded. Colors become simplestyle properties, icons are dropped, ground overlays become georeferenced pictures, and each KML folder becomes its own GeoJSON file in a zip. Attribute tables that ArcGIS writes into the descriptions become properties too.

Did a file not convert correctly? E-mail [email protected], ideally with a small sample file, and it will be fixed.

Key facts

KMZ to GeoJSON: why convert

Google Earth Pro saves places as KMZ by default, and KMZ is a common download format for map data from public agencies and utilities. To use that data in a web map, a JavaScript app or a spatial database, you need GeoJSON. This converter opens the KMZ, finds the KML inside and turns its placemarks into GeoJSON in one step, with names and descriptions kept as properties. Folders become separate GeoJSON files, so the structure of the original survives. It all happens in your browser with GDAL, the engine behind QGIS, and the file is never uploaded.

How to convert KMZ to GeoJSON

  1. Drop your .kmz file in the box, or click to choose it.
  2. Check the placemarks on the map and the list of folders.
  3. Click Convert and download the GeoJSON file, or a zip with one file per folder.

What changes when you convert

Icons are left out, overlays become pictures

Icons and photos packed in a KMZ are not geographic features, so they are not part of the GeoJSON; a description that shows a photo with an img tag keeps the tag, but not the image file. GeoJSON cannot hold pictures, so scanned maps placed as ground overlays are copied into the zip next to it unchanged, each with a world file (.jgw or .pgw), a .prj and an .aux.xml in WGS84, which QGIS and ArcGIS read. An overlay with four free corners (gx:LatLonQuad) is left out, and the page says so.

Colors become properties

GeoJSON has no styles of its own, so the colors and line widths of each placemark are written as the simplestyle properties marker-color, stroke, stroke-width, stroke-opacity, fill, fill-opacity. geojson.io, GitHub and Mapbox draw them, and in Leaflet or MapLibre you can use them in your style. Icon images are not carried over.

One GeoJSON file per folder

Each KML folder becomes its own layer and therefore its own GeoJSON file, named after the folder, and you download them together as a zip. Placemarks that are not in any folder form a layer of their own.

Height without altitude mode

Altitudes are kept as the third coordinate. KML also says whether a height is measured from the ground or from sea level; GeoJSON cannot express that, so the information is dropped.

Coordinates stay put

KML and GeoJSON both use WGS84 longitude and latitude, so no reprojection is needed. The output follows RFC 7946 with up to 7 decimal places.

About the formats

KMZ

KMZ is a zipped KML file, often with icons and images packed alongside it. Google Earth saves KMZ by default, so it is the format most people get when they export from Google Earth.

  • The main file inside the zip is usually doc.kml.
  • Images and icons inside the KMZ are not geodata, so they are left out when converting to formats such as GeoJSON or Shapefile.

GeoJSON

GeoJSON is a plain-text JSON format for geographic features, standardized as RFC 7946 in 2016. It is the native format of web maps such as Leaflet, MapLibre and Mapbox, and of many APIs.

  • Coordinates are WGS84 longitude, latitude (in that order).
  • Points, lines and polygons can be mixed in one file.
  • Properties can be any JSON value, with no limit on field name length.

Frequently asked questions

What is inside a KMZ file?

A zip archive with a main KML file, usually doc.kml, and often a folder of icons or photos. The converter unpacks it in memory, so you do not have to unzip it yourself.

My KMZ has several KML files inside. Which is converted?

All of them. The main doc.kml is read first, followed by any other KML files in the archive, and each of their folders becomes a GeoJSON file.

Can I turn the GeoJSON back into KML later?

Yes, with the GeoJSON to KML converter, which turns the simplestyle properties back into KML colors. Icon images and photos do not come back; keep the original KMZ if they matter.

Is my KMZ uploaded?

No. The file is unpacked and converted by your browser, and nothing leaves your computer.