The short answer

A KMZ is a KML file packed in a ZIP archive, sometimes with the images and icons it uses. Our guide on how to open a KMZ file explains the format in more detail. How you create one depends on where your data is now.

You have

How to get a KMZ

Places or a folder in Google Earth Pro

Right-click the folder, Save Place As, save as KMZ

A project in Google Earth on the web

Export as KML file, then zip the KML

A map in Google My Maps

Menu, then Export to KML/KMZ

A KML file

Open it in Google Earth Pro and save as KMZ, or zip it and rename the ZIP

A layer in QGIS

Save Features As KML, then zip it

A Shapefile or GeoJSON file

A converter with KMZ output

Excel, CSV, DWG or DXF

Convert to KML, then zip it

The steps on this page were checked against Google's help and developer pages, a Google Earth product blog post, the QGIS manual and the GDAL documentation on December 6, 2026. Menu names in Google's apps may have changed since then.

How to create a KMZ file in Google Earth Pro

Google's KML tutorial says placemarks, ground overlays, paths and polygons "can all be authored directly in Google Earth." Google Earth Pro then saves them as a KMZ.

  1. Add your placemarks, paths or polygons with the buttons above the map, or open an existing file with File, then Open.

  2. Keep everything you want to share in one folder under My Places.

  3. Right-click the folder and choose Save Place As. On a Mac, Google's help page uses Ctrl and a left click to open this menu.

  4. Enter a file name, pick where to save it and click Save.

Google's help page on saving places says that on a Mac, "Google Earth will save the file as a .kmz file, which includes the KML file." A Google Earth blog post from October 2026 describes the same right-click step and says you can save a folder "as a standalone KMZ or KML file." It also advises against saving your whole My Places tree as one large KMZ. Save the folders you need instead.

Google has announced that Google Earth Pro for desktop will no longer be available for download as of June 25, 2027.

How to export KML from Google Earth on the web

Google Earth in a browser keeps your work in projects. Google's page on managing projects gives the export step:

  1. On the home screen, find the project and click More on the right. In an open project, the same actions are in the toolbar and the left panel.

  2. Click Export as KML file. The help page on saving places also lists File, then Export as KML file (Ctrl + E).

These pages describe a KML file and do not mention KMZ. To get a KMZ, zip the KML as described below, or open it in Google Earth Pro and save it as KMZ. If someone shared the project with you and you cannot export it, the owner may have turned downloads off. Google says this setting stops viewers and commenters from exporting the project as a KML file.

How to export KMZ from Google My Maps

Google My Maps exports a map directly. The steps are on Google's page Share, download, or print your map:

  1. Sign in to My Maps on a computer and open the map.

  2. In the left panel, click the menu (three dots).

  3. Select Export to KML/KMZ and follow the instructions on screen.

The same page says a single layer can also be exported to CSV, but not a whole map.

How to convert KML to KMZ

In Google Earth Pro

Open the KML with File, then Open. It appears in the Places panel. Right-click it, choose Save Place As and save it as KMZ.

By hand with a ZIP tool

Google's KMZ documentation gives the rules for building a KMZ yourself:

  1. Put the KML file in a folder. Name it doc.kml, which is the default name for the main KML file.

  2. If the KML uses images or icons, put them in the same folder or in a subfolder, often called files.

  3. Select the contents of the folder, not the folder itself, and create a ZIP archive with Windows Explorer or the Mac Finder.

  4. Change the .zip extension of the archive to .kmz.

Google also says to include only one .kml file and to place it at the top level of the archive. When Google Earth opens a KMZ, it looks for the first .kml file it finds. References to images should be relative, because "if you use absolute references to local files, the links will break when the files are moved to a new system." Relative paths start in the folder that holds doc.kml.

How to create a KMZ file in QGIS

QGIS saves a layer to another format from the Save Layer as dialog. The QGIS manual on creating layers describes it:

  1. Right-click the layer in the Layers panel and choose Export, then Save Features As.

  2. Set Format to KML and choose a file name.

  3. Optionally use Symbology export. The manual lists KML among the formats that can store OGR feature styles.

  4. Turn on Add saved file to map if you want to check the result, then save.

This gives you a .kml file. Zip it as shown above, or save it as KMZ in Google Earth Pro.

The QGIS manual does not mention KMZ. QGIS writes "any vector format GDAL can write to", and GDAL has two KML drivers. The basic KML driver is "not KMZ-aware." The LIBKML driver accepts "a kmz file somefile.kmz" as a data source and can create files. In a KMZ it writes doc.kml as an index with a network link to each layer file. Whether your copy of QGIS lists this driver as an output format depends on how its GDAL was built. If a KMZ written this way opens empty in another program, save a plain KML and zip it instead.

Create a KMZ from a Shapefile, spreadsheet, GeoJSON or CAD file

Our free converters run in your browser and do not upload the file to our server. Each free page takes three files, and the quota fills up again over the next one to three days.

  • Shapefile. The SHP to KMZ converter takes a ZIP with the .shp, .shx and .dbf files, and the .prj if you have it. It reads the .prj, reprojects the data to WGS 84 and writes one KMZ holding a single doc.kml. The free tool handles ZIP files up to 3 MB.

  • GeoJSON. The GeoJSON to KML converter has a KMZ output option. The file must use latitude and longitude, and the free tool handles files up to 3 MB.

  • Excel or CSV with coordinates. The CSV and Excel to KML converter writes one point per row from latitude and longitude columns in decimal degrees. The free tool converts up to 50 rows per file. It writes KML, so zip the result or save it as KMZ in Google Earth Pro.

  • DWG or DXF. The DWG to KML converter and the DXF to KML converter are free for drawings already in latitude and longitude. Drawings in UTM or State Plane need GaleriGIS Toolbox. The DXF page reads ASCII DXF files up to 3 MB. Both write KML, so zip the result for a KMZ.

None of these converters set colours or icons. Google Earth draws the features in its default style.

Why use KMZ instead of KML

Google says zipping typically gives about 10:1 compression, and it suggests a KMZ once doc.kml is larger than 10 KB. A KMZ also carries its images, icons and other supporting files inside the archive, so you send one file.

Keep a KML when a program or form accepts .kml only, or when you want to read and edit the file in a text editor.

Common problems when creating a KMZ

Images or icons are missing

The KML probably points to the images with absolute paths, such as a folder on your own drive. Those links break on another computer. Copy the images into the folder next to doc.kml, change the references to relative paths and zip the folder contents again.

The KMZ opens but shows nothing

Check how you zipped it. If you zipped the folder itself, doc.kml sits in a subfolder of the archive and not at the top level. Zip the contents of the folder instead. A KMZ that holds only network links, such as one written by GDAL's LIBKML driver, keeps its data in other files. Our KMZ to KML converter reads doc.kml and tells you when a file holds only a network link.

Only part of the data appears

The archive may hold more than one .kml file. Google Earth reads the first one it finds. Merge the data into one doc.kml and zip again.

Renaming did not work

A KMZ is a ZIP archive, so renaming a .kml file to .kmz does not make one. Create the ZIP first, then change its extension from .zip to .kmz.

A note on our own software

We make the converters above, so weigh this section with that in mind. GaleriGIS Toolbox costs $15 a month, has no conversion limit and converts DWG and DXF drawings in UTM, State Plane or another EPSG code. What our tools do not do:

  • There is no KML to KMZ converter. For that, use Google Earth Pro or a ZIP tool.

  • The Excel, DWG and DXF converters write KML, not KMZ.

  • They do not add styles, icons or images to the file.

Our Windows app GaleriGIS Pro exports map layers to KML, Shapefile, GeoJSON and CSV, but not to KMZ.

Frequently asked questions

How do I create a KMZ file?

In Google Earth Pro, right-click a folder in My Places, choose Save Place As and save it as KMZ. In My Maps, use Export to KML/KMZ. From any KML file, put it in a ZIP archive as doc.kml and change the extension to .kmz.

How do I convert KML to KMZ?

Open the KML in Google Earth Pro and save it as KMZ, or zip the KML and rename the archive from .zip to .kmz.

Can I export a KMZ from Google Earth on the web?

Google's help pages describe Export as KML file for projects and do not mention KMZ. Zip the exported KML to make a KMZ.

How do I export a KMZ from Google Earth Pro?

Right-click the place or folder, choose Save Place As and save it as a KMZ file.

Can I just rename a KML file to KMZ?

No. A KMZ must be a ZIP archive. Zip the KML first, then rename the archive.

What is the difference between KML and KMZ files?

KML is a text file. KMZ is a ZIP archive with one main KML file, usually doc.kml, plus any images or icons it uses. See how to open a KMZ file for more.