Sport-Calculator.comSport-Calculator.com
Tools3 min read

KML vs KMZ: Understanding Google Earth Formats

What is the difference between KML and KMZ? Learn about Google Earth file formats, compression, and which one you should use for your maps.

What is the difference between KML and KMZ? KML is the standard XML file format for Google Earth data. KMZ is simply a zipped (compressed) KML file. Think of KMZ as a container that holds the KML file plus any images or icons used in the map.

Quick Comparison

FeatureKML (Keyhole Markup Language)KMZ (Keyhole Markup Zipped)
FormatXML Text (Human readable)ZIP Archive (Binary)
File SizeLargerSmaller (Compression ~10:1)
ContentsOnly map dataMap data + Images + Icons
EditingEdit in Notepad/Text EditorMust unzip first
SharingBest for simple dataBest for maps with images

What is KML?

KML is a text-based format. You can right-click a KML file, choose "Open with Notepad", and read the code.

Pros:

  • Human readable and editable
  • Easy to parse with scripts
  • Works with all converters

Cons:

  • File size can get large
  • External images/icons will break if sent to others (broken links)

What is KMZ?

KMZ is a ZIP archive. If you change the file extension from .kmz to .zip, you can open it like any other zip folder. Inside, you'll find a doc.kml file and usually a files/ folder containing images.

Pros:

  • Much smaller file size
  • Bundles images and icons (self-contained)
  • Faster to download/email

Cons:

  • Must be unzipped to edit the code
  • Some older GPS software might not read it

When to Use Which?

Use KML When:

  • You need to convert the file to GPX (converters prefer KML)
  • You want to edit the coordinates manually in a text editor
  • You are developing a script to generate map data
  • The file contains only simple points or paths

Use KMZ When:

  • You are sharing a file via email (smaller size)
  • Your map includes custom icons or photo overlays
  • You have a large dataset (compression helps significantly)
  • You want a single file that "just works" for the recipient

Converting KMZ to KML

Since KMZ is just a zip file, you don't need special software:

  1. Rename myfile.kmz to myfile.zip
  2. Double-click to open/extract the zip
  3. Inside, find doc.kml
  4. That's your KML file!

Converting for GPS

If you need to put a Google Earth file on a GPS device, you need GPX format.

  1. If you have a KMZ, extract the KML first (as above)
  2. Use our KML to GPX Converter
  3. Download the GPX file for your device

Disclaimer: Information provided by this site is for educational purposes only and is not intended to be a substitute for professional medical advice specific to the reader's particular situation. The information is not to be used for diagnosing or treating any health concerns you may have. The reader is advised to seek prompt professional medical advice from a doctor or other healthcare practitioner about any health question, symptom, treatment, disease, or medical condition.