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
- KML → GeoJSONConvert KML to GeoJSON
- GeoJSON → KMLConvert GeoJSON to KML
- KML → SHPConvert KML to Shapefile (SHP)
- SHP → KMLConvert Shapefile (SHP) to KML
- KML → GPKGConvert KML to GeoPackage (GPKG)
- GPKG → KMLConvert GeoPackage to KML
- KML → KMZConvert KML to KMZ
- KMZ → KMLConvert KMZ to KML
- KML → GPXConvert KML to GPX
- GPX → KMLConvert GPX to KML
- KML → DXFConvert KML to DXF
- DXF → KMLConvert DXF to KML
- KML → CSVConvert KML to CSV
- CSV → KMLConvert CSV to KML
- XLSX → KMLConvert Excel (XLSX) to KML
- KML Converter
What to know about KML
- Always WGS84 longitude, latitude and optional altitude.
- Folders group placemarks; each folder can become its own layer when converting.
- Styles (colors, line widths, icons) are specific to KML and Google Earth.
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.