KMZ to KML Converter

Get the KML out of a KMZ file and see the name of every file packed inside it, or turn a KML file into a KMZ, without uploading the file.

How to convert KMZ to KML

  1. Add the KMZ file

    Drop it on the map above or press Choose a file. The map shows what is in it, with its icons and image overlays.

  2. See the files inside

    In the panel, Archive contents lists the path of every file packed in the KMZ: the KML file and the images, icons and other files beside it. The list shows the paths only; the files cannot be saved from it.

  3. Download the KML

    Press Download KML to save the KML file. It holds what is shown on the map, so untick a folder to leave it out.

  4. Or make a KMZ from a KML

    Add a KML file instead, and the button becomes Download KMZ, which saves the KML as doc.kml inside a KMZ. The button follows the last file you added.

What a KMZ is and how to open one in Google Earth: how to open a KML or KMZ file.

What is inside a KMZ file

A KMZ file is a ZIP archive: one main KML file and the files it uses (images, icons, sounds, 3D models), packed together so they can be stored and sent as one file. Google's documentation says the main file is named doc.kml by default, but it can have any name that ends in .kml, as long as it is the only .kml file in the archive.

Zipping also makes the file smaller. Google's example is a 10 KB KML file served as a 1 KB KMZ, and it advises a KMZ for any KML file larger than 10 KB or one that uses other files.

What happens to the images and icons

A KML file names its icons and overlay images by their path inside the KMZ, such as files/icon.png. The KML you download names them by their paths inside the KMZ too, but the pictures are not beside it, so a program that opens the KML on its own cannot find them.

To keep the pictures, keep the KMZ, or take every file out of it: Google's documentation says to change the extension from .kmz to .zip and unzip the archive. That gives you the original KML and its files in their folders, unchanged. This converter does not save the files packed inside a KMZ.

The KML is written again, not copied out

The KML you download is written by the converter from what it read, as KML 2.2: folders with their names and whether they are ticked, placemarks with their names, descriptions, data fields and shapes, each placemark's style written inside the placemark, and ground overlays with their position and rotation. Parts of a KML file the viewer does not draw, such as network links, 3D models, tours, and photo and screen overlays, are not in it, and neither are shared styles, label and balloon styles, or KML time elements (time stamps become data fields). Altitudes are written as heights above sea level, whatever altitude mode the file used. If you need the file exactly as it was written, use the rename-and-unzip way above.

A KMZ with more than one KML file

Google's documentation says Google Earth opens the first .kml file it finds in a KMZ and ignores any others, and that you cannot be sure which one it finds first, so a KMZ should hold only one. This converter uses doc.kml when the archive has one at its top level, and otherwise the first .kml file listed in the archive. Archive contents lists every .kml file in the archive but does not mark the one that was used.

KML to KMZ

Add a KML file and press Download KMZ to get a KMZ that holds the KML as doc.kml, compressed, and nothing else. Icons and images that the KML names by a web address stay web addresses, so a program that opens the KMZ loads them from the web as before. For a KMZ you opened, Download KMZ under Export writes a new doc.kml and packs the icons and overlay images it uses.

Your file is not uploaded

The KMZ is unzipped in your browser and the KML is written there, so the file never leaves your device. A KMZ is checked before anything is unpacked: an archive that lists more than 5,000 files or adds up to more than 500 MB unpacked is refused as too large, and one that names a path leading outside the archive is refused as unsafe. Each file is checked against its declared size and checksum as it is unpacked.

Frequently asked questions

How do I convert KMZ to KML?

Add the KMZ to this page and press Download KML. You get the KML from inside the KMZ, written again with its folders, styles, descriptions and data fields.

Is a KMZ the same as a KML?

No. A KMZ is a ZIP archive that holds a KML file and the files it uses. A program that reads KMZ files unzips it and reads the KML inside.

How do I go from KML to KMZ?

Add the KML file to this page and press Download KMZ.

Can I rename a .kmz file to .kml?

No. Renaming does not unzip it, so it is still a ZIP archive, now with the wrong name. Google's documentation gives the manual way: rename .kmz to .zip, unzip it, and the main KML file is inside.

Can I open a KMZ file in Google Earth?

Yes. Google Earth on the web, Google Earth Pro and the Google Earth phone apps open KMZ files, and Google My Maps imports one of up to 5 MB unzipped.

Why do the icons disappear after I extract the KML?

The icons were files inside the KMZ, and the KML only names them. Keep the KMZ, or unzip the whole archive so that the pictures stay beside the KML in their folders.

Is my file uploaded?

No. The archive is opened in your browser and never leaves your device. Google Analytics, which counts visits, never receives the file, the names of the files inside it, or its placemarks.