What Is .kml

Content on WhatAnswers is provided "as is" for informational purposes. While we strive for accuracy, we make no guarantees. Content is AI-assisted and should not be used as professional advice.

Last updated: April 10, 2026

Quick Answer: KML (Keyhole Markup Language) is an XML-based file format for representing geographic data, including coordinates, maps, and location markers. Originally developed by Keyhole Inc. and acquired by Google in 2004, it became an open international standard (OGC KML 2.2) in 2008 and is now the standard format for sharing geographic information across mapping applications like Google Earth and Google Maps.

Key Facts

Overview

KML (Keyhole Markup Language) is a file format used to display geographic data in internet-based mapping applications. It is structured as an XML document that encodes geographic information such as points, lines, polygons, images, and 3D models, making it the standard way to share location-based information across different platforms.

The format originated with Keyhole Inc.'s mapping software in 2001 and gained widespread adoption after Google acquired the company in 2004. Google integrated KML into Google Earth and Google Maps, eventually leading the Open Geospatial Consortium (OGC) to formally standardize it as KML 2.2 on May 14, 2008. Today, KML is the de facto standard for geographic data interchange and is supported by countless mapping, GIS, and navigation applications worldwide.

How It Works

KML files operate using a hierarchical XML structure that defines geographic features and their properties. Here's how the format functions:

Key Comparisons

KML shares space with other geographic data formats, each with distinct strengths:

FormatStructureBest ForFile Size
KMLXML-based, human-readableWeb mapping, Google Earth, general GIS sharingMedium (readable compression)
GeoJSONJSON-based, lightweightWeb applications, REST APIs, modern developmentSmaller files, faster parsing
ShapefileBinary format, multiple filesProfessional GIS, desktop applications like ArcGISCompact binary, requires multi-file bundle
GPXXML-based, track-focusedGPS tracking, fitness data, hiking routesSmall, optimized for point sequences

While GeoJSON has gained popularity for web development due to its lightweight JSON structure, KML remains the preferred format for Google Maps integration and provides superior support for visual styling, 3D models, and time-based animations. Shapefiles dominate professional GIS workflows but require multiple companion files, whereas KML is a single, self-contained file.

Why It Matters

KML's enduring relevance stems from its balance of simplicity and power. Whether you're a casual user sharing a hiking route on Google Earth or a GIS professional managing complex geographic datasets, KML provides a reliable, standardized format that bridges the gap between professional geospatial tools and everyday mapping applications. Its continued adoption across industries—from urban planning and environmental monitoring to real estate and emergency management—demonstrates that despite newer alternatives, KML remains the most practical choice for most geographic data sharing needs.

Sources

  1. Keyhole Markup Language - WikipediaCC-BY-SA-4.0
  2. OGC KML Standard - Open Geospatial ConsortiumOGC License
  3. KML 101 - Google DevelopersCC-BY-4.0

Missing an answer?

Suggest a question and we'll generate an answer for it.