How to Open a KML or KMZ File

A KML file is a map file written as text: places, paths and areas with their names and descriptions. This guide explains what KML and KMZ files are, how they differ, and how to open one in Google Earth, in Google My Maps, on a phone, and in your browser without uploading it.

Updated

Open a KML or KMZ file

What a KML file is

KML stands for Keyhole Markup Language. Google's KML tutorial describes it as a file format for displaying geographic data in an Earth browser such as Google Earth, written in XML: plain text with nested tags. It is an open standard, the OGC KML Encoding Standard, maintained by the Open Geospatial Consortium.

A KML file can hold placemarks (a point with a name and an icon), paths, polygons, ground overlays (an image laid over the map) and descriptions written in HTML, each with a style. Folders group them, and each item can be shown or hidden. Every position is written as longitude, latitude and an optional altitude in meters, in that order. A network link loads more KML from another file or a web address.

Colors are written as eight hexadecimal digits in the order alpha, blue, green, red (aabbggrr), so Google's example 7fff0000 is blue at 50 percent opacity.

What a KMZ file is

A KMZ file is a KML file and the files it uses (images, icons, sounds, 3D models), packed into one ZIP archive so they can be stored and emailed as one file. Google's documentation names the main file doc.kml by default and says the archive should hold only one .kml file. Zipping also compresses it: Google's example is a 10 KB KML file served as a 1 KB KMZ.

KML vs KMZ

The two hold the same map data. The difference is packaging:

KMLKMZ
What it isA text file in XMLA ZIP archive with one main KML file inside
Images and iconsNamed by a file path or a web addressCan be packed inside the archive, beside the KML
SizeLargerAbout a tenth of the KML in Google's example
Read in a text editorYesOnly after unzipping
Google's adviceFine for a small file that uses no other filesFor a KML file larger than 10 KB, or one that uses images, sounds or 3D models

Google Earth, Google My Maps and the viewer on this site open both. To turn one into the other, use KMZ to KML, which works both ways.

Open it in Google Earth on the web

Google Earth in a browser can open a file on its own, as a local KML file, or add it to a project. A local KML file stays on your computer and is not added to a project, and it works even when you are not signed in. Google's steps:

  1. On your computer, open Google Earth.
  2. At the bottom left of the home screen, click Open local KML editor.
  3. Click Open KML from device and select the file.

To add the file to a project saved in your Google account instead, sign in, click New, then Import file, choose Upload from device or Import from Drive, select the file, and in the How do you want to add this data? dialog choose Map features and click Import. Google's limit for map features is 10,000 features and 250,000 vertices per import. A larger file is imported as a read-only data layer, which is uploaded to Google and counts toward your Google Earth storage.

Google says to save or download changes to a local KML file back to your computer to keep them; Google Earth saves them automatically only in Chromium-based browsers on a computer.

Open it in Google Earth Pro on a computer

  1. Open Google Earth Pro.
  2. Click File > Open.
  3. Select the type of file, or choose All data import formats, and open the file.

The file appears under Temporary Places in the Places panel. To keep it there, Google's help says to drag it out of that folder and choose File > Save > Save My Places before you exit Google Earth Pro.

Import it into Google My Maps to see it in Google Maps

Google Maps shows a KML file through My Maps, which you use in a browser on a computer. Google's steps:

  1. On your computer, sign in to My Maps.
  2. Open or create a map.
  3. In the map legend, click Add layer and give the new layer a name.
  4. Under the new layer, click Import.
  5. Upload the KML or KMZ file, then click Select.

Google's limit is 5 MB for a KML or KMZ file, unzipped. Google also says a KML file may not import all of its data, and lists info balloons with HTML or JavaScript, tours, time-based elements, image and screen overlays, MultiGeometries, 3D models and folders. For a larger file, or one with folders, open it in Google Earth, which keeps a KML file's folders when it imports the file into a new project, or in the viewer on this site.

To see the map on your phone, sign in and open the Google Maps app, tap You, then Maps, then the map. My Maps itself is not available for iPhone, iPad or Android, so the import has to be done on a computer.

Open it on an iPhone, iPad or Android phone

The Google Earth app for iPhone, iPad and Android opens a simple KML or KMZ file from your device as a local KML file. Google's steps:

  1. Open the Google Earth app.
  2. Select the Local tab on the home screen.
  3. At the bottom right, tap New, then Local KML editor.
  4. Select Open KML/Z from device and choose the file.

The file then stays in the local KML files tab on the home screen. To add it to a project instead, open the project, tap More, then Import file to project, and choose Upload from device or Import from Drive.

Open it in your browser without uploading it

The KML viewer on this site opens the file in your browser with no app and no account, and the file never leaves your device.

  1. Open the viewer and drop the KML or KMZ file on the map, or press Choose a file.
  2. Use the panel to show or hide folders, search the placemarks, and open one to read its description and data fields.
  3. Press Export to save the file as KML, KMZ, GPX, CSV, GeoJSON or a Shapefile ZIP.

The viewer draws the file's colors, the icons packed in a KMZ and its image overlays. It does not follow network links or show 3D models and tours, and it says when a file has them. How the viewer works lists everything it draws and what it leaves out.

Read it as text

KML is plain text, so a text editor opens it and shows the tags and coordinates. A KMZ is a ZIP archive: Google's documentation says to change its extension from .kmz to .zip and unzip it, and the main KML file is inside.

Frequently asked questions

What program opens a KMZ file?

Google Earth (on the web, Google Earth Pro and the phone apps) and Google My Maps open KMZ files, and so does the viewer on this site, in your browser.

Why won't Google Earth open my KMZ file?

On the web, Google Earth says what went wrong: click the Failed or Completed status link in the import status tracker to open the Fixing issues with imported files dialog. Google's KMZ documentation also says Google Earth reads only the first .kml file it finds in the archive, so a KMZ should hold only one.

What does KML stand for?

Keyhole Markup Language. A KMZ is a KML file zipped together with the files it uses.

Can I open a KML file without Google Earth?

Yes. Google My Maps imports it in a browser after you sign in, and this viewer opens it in your browser with no account.

Is KML still used?

Yes. Google Earth on the web and its phone apps import KML and KMZ files, as Google's help page, updated on November 18, 2026, describes, and KML is an open standard of the Open Geospatial Consortium.