All converters
HomeBlog › KML vs KMZ: what's the difference?

KML vs KMZ: what's the difference?

By Ghulam Hasnain · PhD researcher, Space Science & Technology · · Updated · 2 min read

The KML vs KMZ question trips up almost everyone new to Google Earth. However, the answer is simple. So this guide explains KML vs KMZ, and shows when to use each.

Advertisement

KML vs KMZ in one sentence

Here is the short answer. KML is a plain text file. KMZ is a zipped KML. So the KML vs KMZ difference is compression, not content. Both hold the same map data.

KML vs KMZ: KML is a plain text file, KMZ is a zipped KML with icons
KML vs KMZ: the same data, but KMZ is the zipped, smaller version.

Why both exist

Each format has a job. KML is easy to read and edit. KMZ is smaller and easy to email. So Google Earth exports KMZ by default.

What KML is

KML stands for Keyhole Markup Language. It is XML, so it is plain text. As a result, you can open it in any editor. Also, you can hand-edit names and coordinates.

When to use KML

Choose KML when you want to edit the file. For example, when you tweak styles or fix a typo. So developers and analysts often prefer it.

What KMZ is

KMZ is a ZIP archive. Inside sits a KML, usually named doc.kml. It can also bundle icons and images. So everything travels in one small file.

When to use KMZ

Choose KMZ when you want to share. For example, when you email a finished map. So the recipient gets one tidy file. Also, custom icons stay attached.

KML vs KMZ: which to choose

Use a simple rule. Pick KML to edit. Pick KMZ to send. So for a working file, KML is handy. For a final file, KMZ is neater.

Convert between them

Switching is easy. For example, KML to KMZ to shrink and share. Or KMZ to KML to edit. You can also send either to Shapefile or GeoJSON for GIS. Read more at the OGC KML standard. In short, the KML vs KMZ choice is just edit versus send.

Frequently asked questions

What is the difference between KML and KMZ?

KML is a plain XML text file. KMZ is that same KML compressed into a ZIP archive, which can also bundle icons and images. They hold the same map data, but KMZ is smaller and easier to share.

Should I use KML or KMZ?

Use KML when you want to read or edit the file in a text editor. Use KMZ when you want to email or share a finished map as one small, self-contained file. Google Earth exports KMZ by default.

How do I convert KMZ to KML?

A KMZ is a ZIP, so you can rename it to .zip and extract the doc.kml inside, or use a KMZ-to-KML converter. A browser-based tool unzips and converts locally, without uploading the file.

Can Google Earth open both KML and KMZ?

Yes. Google Earth opens both formats directly, on desktop and on the web. KMZ is preferred for sharing because it is smaller and keeps custom icons attached.

Can I turn KML or KMZ into a shapefile?

Yes. Convert either format to a shapefile or GeoJSON for GIS. A good converter also lifts the popup and ExtendedData attributes into proper columns during the conversion.

Related converters

Keep reading

About the author

Ghulam Hasnain is a PhD researcher in space science and technology who works with GIS and remote-sensing data every day, wrangling shapefiles, KML, GPX and CAD drawings across QGIS, ArcGIS and Google Earth. He built GISConverter after one too many format conversions that required uploading sensitive survey data to a stranger's server.

Advertisement