KML and KMZ are the two file types Google Earth uses. They hold the same kind of content. The difference is the packaging.
The short answer
A KML file is a text file that lists places: points, lines and areas, with names and descriptions.
A KMZ file is a zip file with a KML file inside it. It can also carry other files, such as pictures.
Side by side
| KML | KMZ | |
|---|---|---|
| What it is | One text file | A zip file holding a KML file |
| Pictures | Linked from somewhere else | Can be packed inside |
| Size | Larger for the same places | Smaller, because it is compressed |
| Read in a text editor | Yes | Not directly |
| Opens in Google Earth | Yes | Yes |
| Opens in other mapping software | Widely | Often, but not always |
When to use KML
- You want the places only: points, lines or boundaries.
- The file goes into other software, such as QGIS, or into a tool that asks for KML.
- You want to read or edit the file by hand.
When to use KMZ
- The placemarks should show pictures, and the file has to work on another computer.
- The file is large and you want it smaller.
A KML file can only point to a picture, by its address on a website or its place on your computer. Send that KML to someone else and the pictures do not come with it. A KMZ file carries them inside.
Turn one into the other
KMZ to KML. A KMZ file is a zip file. Change the ending of its name from .kmz to .zip and open it. The KML file inside is usually called doc.kml.
KML to KMZ. Open the KML file in Google Earth Pro, right-click it in the Places list, choose Save Place As and pick KMZ.
Photos in Google Earth
For photos, KMZ is the right choice, because the pictures travel with the file. Photos to KML makes both: a KMZ with a small copy of each photo inside, and a plain KML with the points only.
Questions
Can a KMZ file hold more than one KML file?
Yes, but Google Earth opens one main file, normally doc.kml. Most KMZ files hold just that one.
Which one do I need for a boundary?
Either. A boundary is a shape with no pictures, so a KML file is enough. See How to Draw a KML Boundary in Google Earth.