Convert KMZ to KML
This tool extracts the KML file from a Google Earth KMZ archive unchanged, keeping styles, folders, descriptions and network links. The KMZ is unpacked in your browser and is not uploaded. If the KMZ also holds icons, photos or image overlays, you get a zip with the KML and those files, which must stay together, and the map preview shows only placemarks, paths and polygons.
Did a file not convert correctly? E-mail [email protected], ideally with a small sample file, and it will be fixed.
Key facts
- Input: KMZ (.kmz). Output: KML (.kml).
- Your files are not uploaded: the work is done in your browser, on your own device.
- File size: no fixed limit; very large files are limited by your device's memory.
- Needs a current browser (Chrome, Edge, Firefox or Safari) on a computer, tablet or phone; nothing to install.
- Free to use, with no sign-up.
KMZ to KML: why convert
A KMZ is a KML file packed in a zip archive, often together with icons, photos or image overlays. Google Earth Pro saves places as KMZ by default, but some websites, GPS apps and GIS tools only accept plain KML. This page unpacks the KMZ in your browser and gives you the KML inside exactly as it is. Nothing is converted, so styles, folders, descriptions, time stamps and network links all stay intact. A map preview shows what the file contains before you download it. Your file is not uploaded, which makes the tool safe for private locations and unpublished plans.
How to convert KMZ to KML
- Drop your .kmz file in the box, or click to choose it.
- Check the preview on the map and the list of folders.
- Click Extract KML and download the file.
What changes when you convert
Icons and photos packed in the KMZ
A KMZ can carry images that the KML points to with relative paths such as files/icon.png. A KML file on its own cannot hold them. If the KMZ contains only the KML, you get a single .kml file. If it also contains other files, you get a zip with the KML and those files in their original folders; keep them together so custom icons and photos keep showing. Icons linked from the web, such as Google's standard pushpins, work either way.
The KML is copied, not rewritten
The KML is taken out byte for byte, so whatever Google Earth shows from the KMZ it also shows from the KML, provided the packed files stay next to it. Inside the KMZ the file is usually called doc.kml; you get it named after your KMZ, so trip.kmz becomes trip.kml.
Which KML is the main one
By convention the main file is doc.kml. If there is none, the first KML in the top folder of the archive is used. Extra KML files that the main one links to are included in the zip with their folders.
Image overlays
Ground overlays such as scanned maps, and screen overlays such as logos, are images in the KMZ. They come along in the zip, but the map preview here only draws placemarks, paths and polygons.
KMZ files that are not zipped
Some programs save plain KML text with a .kmz ending. The page notices this and gives you the file as a .kml.
Example: a Google Earth walk up Helvellyn with a custom icon, from KMZ to KML
The example file helvellyn_walk.kmz is laid out like a KMZ saved in Google Earth: a doc.kml with two points (Glenridding and Helvellyn summit) that use a custom icon, files/viewpoint.png, and a line (Path) with heights, plus the icon itself in the files/ folder. The path is simplified and must not be used for finding your way on the fells.
After you drop the KMZ, the status line says "Ready: 3 features in 1 layer.". Because the KMZ also holds the icon, the download is helvellyn_walk_kml.zip with helvellyn_walk.kml and files/viewpoint.png, and the page says: "The KMZ also holds 1 other file (such as icons or photos) that the KML can refer to … Keep them together." helvellyn_walk.kml is the doc.kml byte for byte: the styles, the Walk folder, the descriptions and the heights (150 and 950 m) are all still there.
helvellyn_walk.kmz helvellyn_walk_kml.zip ├─ doc.kml → ├─ helvellyn_walk.kml (unchanged) └─ files/viewpoint.png → └─ files/viewpoint.png
Download the example file helvellyn_walk.kmz (1 KB) and convert it above
Common problems in QGIS, ArcGIS and Google Earth, and what this page does
- Custom icons disappear. The KML points to the icon with a relative path (files/viewpoint.png). If you keep only the .kml, Google Earth cannot find the picture and shows no icon. The page gives you the icon in its original folder next to the KML; unzip it and keep both in the same folder.
- Renaming .kmz to .zip. This works because a KMZ is a zip, but the main file is called doc.kml, and with several KMZ files you end up with many files called doc.kml. The page names it after the KMZ, here helvellyn_walk.kml.
- The KMZ is not a zip. Some programs save plain KML text with a .kmz ending, and tools that expect a zip fail on it. The page notices this and gives you the text as a .kml.
- The KMZ holds several KML files. By convention the main file is doc.kml; if there is none, the first KML in the top folder is used. Extra KML files that the main one links to come along in the zip with their folders.
Next: convert the KML to a shapefile, turn the KMZ into GeoJSON or pack a KML as KMZ again.
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.
KML
KML (Keyhole Markup Language) is the XML format behind Google Earth and Google My Maps, and an OGC standard since 2008. Besides geometry it can hold styles, icons, folders and descriptions in HTML.
- Always WGS84 longitude, latitude and optional altitude.
- Folders group placemarks; each folder can become its own layer when converting.
- Styles (colors, line widths, icons) are specific to KML and Google Earth.
Frequently asked questions
Can I just rename the .kmz to .zip?
Yes. A KMZ is an ordinary zip archive, so renaming it and unzipping it with your system works too. This page saves you the renaming, names the KML after the KMZ and shows a preview first.
Why did I get a zip instead of a KML file?
Your KMZ contains images or other files besides the KML. They are kept with the KML in a zip so the links inside it keep working. The KML is at the top of the zip.
Can I convert a KMZ to GeoJSON or a shapefile?
Yes. Use the KMZ to GeoJSON converter for web maps. For a shapefile, extract the KML here and use the KML to Shapefile converter.
Is my KMZ uploaded?
No. The archive is unpacked by your browser on your own computer.