What Is KML and KMZ? Google Earth Formats Explained
Learn what KML and KMZ are, what they’re used for, and how to open or convert KML/KMZ to GeoJSON for modern web mapping.
KML (Keyhole Markup Language) is an XML-based format used to store geographic features and overlays, originally popularized by Google Earth. KMZ is a zipped version of KML that can bundle the KML with related resources such as icons or images.
To preview KML quickly, use the KML viewer: /open-kml-online/.
What KML contains
KML commonly includes:
- Placemarks (points, lines, polygons)
- Folders and feature grouping
- Styling information (colors, labels, icons)
- Descriptions and metadata
KMZ packages the same content into a single compressed file, which is easier to share.
When KML/KMZ is a good choice
Use KML/KMZ when:
- You need a format that works well in Google Earth
- You want to share map overlays with styling and organization
- Your workflow already produces KML outputs
Limitations
- KML is less convenient for modern web mapping toolchains than GeoJSON.
- Tooling can vary across platforms, especially for complex styling.
Convert KML to GeoJSON
GeoJSON is typically easier for web maps and APIs:
- Convert KML to GeoJSON: /kml-to-geojson/
- Open GeoJSON online: /open-geojson-online/
Related reading
- Comparison: /blog/kml-vs-geojson/
Related Posts
Extracting POIs from OpenStreetMap and Overture Maps: A Practical Guide
Extract EV charging and gas station POIs from NYC OSM data with osmium, and compare with Overture Maps' GeoParquet pipeline.
How to Open a Shapefile Online (with .dbf, .shx, .prj)
Step-by-step: open a Shapefile online in your browser, upload the required sidecar files, and troubleshoot missing .dbf/.shx/.prj issues.
KML vs GeoJSON: When Should You Convert?
KML vs GeoJSON explained: compatibility, typical use cases, and the simplest way to open and convert files for modern web mapping.
What Is a Shapefile? (.shp + .dbf + .shx Explained)
What is a Shapefile and why does it include multiple sidecar files? Learn how Shapefile works, common issues, and how to open Shapefiles online.