GML KML
File conversion

Convert GML to KML

QUICK ANSWER
Is it possible to convert GML to KML?
Yes - GML converts to KML.

Run ogr2ogr -f KML out.kml in.gml to convert; if the GML uses a projected coordinate system add -t_srs EPSG:4326 since KML requires WGS 84. QGIS provides a graphical alternative with no command line needed.

1 programs
Also to KML: SSF · LOC · KLM

On this page

Tested on macOS, Windows & Linux
Last verified Oct 2026

More free converters

HEIC, PNG, WEBP, MP3 and more - every tool here is free.

Open the toolbox

Why convert GML to KML?

GML (Geography Markup Language) is an OGC standard introduced in 2000, used by national mapping agencies and GIS data-exchange systems. KML (Keyhole Markup Language, adopted as an OGC standard in 2008) is the visualization format read by Google Earth and Google Maps. Converting to .kml lets you open official GIS datasets in Google Earth or share maps with users who have no GIS software.

How to convert GML to KML

QGIS OPEN-SOURCE

Add the .gml as a vector layer (Layer > Add Layer > Add Vector Layer), right-click the layer, choose Export > Save Features As, set format to KML, and click OK. QGIS reprojects to WGS 84 automatically.

FME Form APP

Create a workspace with a GML Reader and a KML Writer, then run it. FME handles CRS reprojection and attribute mapping automatically.

Programs that convert GML

MyGeodata Cloud

About these formats

Quality & what to watch

  • KML requires WGS 84 coordinates (EPSG:4326); if the GML uses a national grid or projected CRS, ogr2ogr and QGIS reproject automatically when you specify the target CRS.
  • GML supports complex nested attribute schemas; KML's extended data model is simpler - nested or typed attributes are flattened on conversion.
  • Large GML files produce large KML files that load slowly in Google Earth; consider converting to KMZ (compressed KML) afterward using QGIS or ogr2ogr.

Frequently asked questions

Do I need to install GDAL separately to use ogr2ogr?
No - if QGIS is installed, ogr2ogr is already available on your machine.
Why does my converted KML appear in the wrong location in Google Earth?
The GML likely uses a projected CRS other than WGS 84; add -t_srs EPSG:4326 to the ogr2ogr command to reproject correctly.
Can I convert GML to KMZ instead of KML?
Yes - QGIS and ogr2ogr can output KMZ (compressed KML) by specifying KMZ as the output format.