Why convert KMZ to GEOJSON?
GeoJSON is the expected input format for web mapping libraries such as Leaflet and Mapbox, and for many web APIs. Converting KMZ data to .geojson makes it directly usable in browser-based maps and modern GIS workflows without requiring a desktop viewer.
How to convert KMZ to GEOJSON
QGIS OPEN-SOURCE
Add the .kmz as a vector layer, right-click it in the Layers panel, and choose Export > Save Features As with format set to GeoJSON.
ogr2ogr (GDAL) OPEN-SOURCE
Run ogr2ogr -f GeoJSON out.geojson in.kmz. Use ogrinfo in.kmz to list layers first if the file contains multiple folders.
About these formats
A KMZ file is a ZIP-compressed Google Earth map - it holds placemarks, routes, polygons, image overlays and sometimes 3D models in one portable package. Open it with the free Google Earth…
Open .KMZ details →A GEOJSON file stores geographic features - points, lines, and polygons with their attributes - as plain JSON text, and it is the standard format for web mapping. To view it on a map…
Open .GEOJSON details →Quality & what to watch
- Placemarks, lines, and polygons with names and description text transfer correctly; KML styling (icon colors, line widths, fills) has no GeoJSON equivalent and is dropped.
- GeoJSON is always WGS 84 (EPSG:4326), which matches KMZ - no reprojection is needed.
- GeoJSON is plain text and typically larger than a compressed
.kmz; for large datasets consider gzip-compressed GeoJSON or FlatGeobuf for web delivery.
Frequently asked questions
Can I convert KMZ to GeoJSON without installing software?
Does the KML folder structure survive in GeoJSON?
What if ogr2ogr cannot read my KMZ?
.kmz to .zip, unzip it, and run ogr2ogr on the doc.kml inside instead.