KML converters

KML (Keyhole Markup Language) is the XML format behind Google Earth and Google My Maps, and an OGC standard since 2008. Besides geometry it can hold styles, icons, folders and descriptions in HTML.

Convert KML

What to know about KML

File extensions: .kml

Where you meet KML files

KML is the format of Google Earth Pro and Google Earth on the web, and Google My Maps exports to it. Drone flight planners, GPS apps, real-estate and planning portals publish KML because anyone can open it in Google Earth with a double-click. In GIS it usually arrives as something to convert, not as working data.

KML compared with other formats

KML or KMZ
A KMZ is a zipped KML, often with custom icons and photos packed inside. Google Earth saves KMZ by default; the KML inside is the same.
KML or Shapefile
A shapefile is for analysis and editing in GIS: a real attribute table and any coordinate system, but no styles. KML is for presenting: styles, folders and HTML descriptions, but always WGS84.
KML or GPX
Most GPS devices and sport apps expect GPX rather than KML. Use KML to show a route in Google Earth and GPX to follow it on a device.

Common problems with KML files

The attributes are inside the description

Many KML files keep their data as an HTML table in the description balloon instead of as fields. After converting you get one Description column full of HTML. Fields stored as ExtendedData are a separate case: FileReshape's KML converters turn each of them into a column of its own. Tool: Convert KML to Shapefile (SHP), Convert KML to CSV.

Colors and icons are gone after converting

Styles are part of KML, not of the data. Shapefile, GeoJSON and CSV have no place for them, so the layer must be styled again in QGIS or ArcGIS.

The file opens but contains nothing

Some KML files hold only a network link that fetches the data from a server when Google Earth opens it. A converter that does not follow the link finds no features. Open the link address in a browser and save the KML it returns.

Each folder became its own layer

KML folders group placemarks. Converters such as QGIS and GDAL turn each folder into a layer, which is usually what you want, but a file with hundreds of folders gives hundreds of layers.

Questions about KML

Which coordinate system does KML use?

Always WGS84 longitude and latitude in decimal degrees, with optional altitude in metres. There is no way to store another system, so data in UTM or a national grid is reprojected when it is saved as KML.

How do I get a KML file out of Google My Maps?

Open the map's menu (the three dots), choose Export to KML/KMZ and tick the option to export a .KML file instead of .KMZ. Without the tick you get a KMZ, which you can unpack into a KML.

Can QGIS and ArcGIS open KML?

QGIS opens KML with Add Vector Layer. ArcGIS Pro has the KML To Layer tool, which makes a file geodatabase and a layer file from it.

Guides