Which MIME types are related to file extension ".kmz"?

The .kmz file extension is associated with 2 MIME types:

application/vnd.google-earth.kmz, application/vnd.google-earth.kml+xml.

A MIME type is a string that tells browsers and other tools how to handle a particular kind of file.

About .kmz Files

KMZ files are compressed geographic data files. They package XML-based KML files and additional resources like images or icons to display maps and 3D terrain models.
They use the MIME type application/vnd.google-earth.kmz and often work with application/vnd.google-earth.kml+xml content internally.

Based on information from FilExt.com, KMZ files simplify file sharing by bundling related geographic data together in a compressed archive.

Relationship between file extension and MIME type

A file extension is a suffix at the end of a filename that indicates what type of file it is. File extensions help both users and operating systems identify what application should be used to open the file.

File extensions are typically separated from the filename by a period (dot) and consist of 2-4 characters, though they can be longer. For example, in the filename "document.pdf", ".pdf" is the file extension.

File extensions are closely related to MIME types, as they both serve to identify the format of a file. However, while MIME types are used primarily by web browsers and servers, file extensions are used by operating systems and applications.

Associated MIME types

application/vnd.google-earth.kmz, application/vnd.google-earth.kml+xml

FAQs

What is a KMZ file and how is it used?

A KMZ file is a compressed archive used primarily by Google Earth to store map locations, routes, and overlays. It is essentially a zipped version of a KML file that may also contain images and icons, making it easier to share complex geographic data in a single file.

How do I open a KMZ file on my computer?

You can open KMZ files using Google Earth Pro (desktop) or Google Earth for Web. Other Geographic Information System (GIS) software, such as QGIS, ArcGIS, and Global Mapper, also fully support viewing and editing these files.

What is the difference between KML and KMZ?

KML (Keyhole Markup Language) is the raw XML code containing geographic data, while KMZ is a compressed archive containing the KML file plus related assets like custom icons or photos. KMZ is generally preferred for sharing because it bundles everything into one smaller file, whereas KML files often rely on external links for images.

Can I view the internal contents of a KMZ file without Google Earth?

Yes, because a KMZ file is actually a ZIP archive. You can rename the file extension from .kmz to .zip and open it with tools like 7-Zip or WinRAR to extract the internal doc.kml file and any associated images.

How do I convert a KMZ file to GPX or CSV?

To convert KMZ data for use in GPS units or spreadsheets, you can use online tools like GPS Visualizer or software like QGIS. These tools parse the geographic coordinates and export them to formats like GPX (for Garmin devices) or CSV (for Excel).

Why won't my browser download the KMZ file correctly?

This often happens if the web server is not configured with the correct MIME type. The server must send the header Content-Type: application/vnd.google-earth.kmz for the browser to recognize it as a Google Earth file; otherwise, it might try to display the binary content as text or XML.

Can I open KMZ files on Android or iPhone?

Yes, you can open these files on mobile devices if you have the Google Earth app installed. When you tap on a KMZ file attachment in an email or download, your phone should recognize the file type and offer to open it within the app to visualize the map data.

General FAQ

What is a MIME type?

A MIME (Multipurpose Internet Mail Extensions) type is a standard that indicates the nature and format of a document, file, or assortment of bytes. MIME types are defined and standardized in IETF's RFC 6838.

MIME types are important because they help browsers and servers understand how to process a file. When a browser receives a file from a server, it uses the MIME type to determine how to display or handle the content, whether it's an image to display, a PDF to open in a viewer, or a video to play.

MIME types consist of a type and a subtype, separated by a slash (e.g., text/html, image/jpeg, application/pdf). Some MIME types also include optional parameters.

How do I find the MIME type for a file?

You can check the file extension or use a file identification tool such as file --mime-type on the command line. Many programming languages also provide libraries to detect MIME types.

Why can one extension have multiple MIME types?

Different programs and historical usage may assign various MIME identifiers to the same file format. Listing them together helps maintain compatibility across tools.