Skip to content
GaleriGIS

KML to GeoJSON converter

Turn a Google Earth KML or KMZ into GeoJSON for web maps, scripts and GIS software. The file is read in your browser and is not uploaded to our server.

  • Reads .kml and .kmz
  • Names, descriptions and extended data become properties
  • Coordinates stay in WGS 84, altitude is kept
  • 3 free files, then unlimited with GaleriGIS Toolbox
Input: KML or KMZ

Drop a .kml or .kmz file

or click to choose a file, up to 3 MB

How to convert KML to GeoJSON

  1. In Google Earth, right-click the folder or placemark, choose Save Place As and save it as KML or KMZ.
  2. Drop the file into the box above.
  3. A .geojson file downloads with the same name.

What ends up in the GeoJSON

The output is one FeatureCollection. Every placemark becomes one feature.

In the KMLIn the GeoJSON
Placemark (point)Point
PathLineString
Polygon, with holesPolygon with inner rings
MultiGeometryGeometryCollection
Name and descriptionProperties name and description
Extended dataOne property per field
AltitudeThird value of each coordinate
Line colour, width and fillProperties such as stroke, stroke-width, fill and fill-opacity
FoldersNot kept. Features from all folders go into one list
Image overlays, photos and icon filesLeft out

Coordinates are written as longitude, latitude, the order the GeoJSON standard uses. No reprojection is needed: KML and GeoJSON are both on WGS 84.

The style properties follow the simplestyle convention. Some web map tools read them to colour the features. Others ignore them, and you can delete them.

Common problems

"This KML only contains a NetworkLink"

The file points to data on a server and has no shapes of its own. Open it in Google Earth, wait for the data to load, then save the loaded folder as a new KML.

The description is full of HTML

Some programs store the attribute table of each feature as an HTML table inside the description. The converter copies the description as it is and does not split the table into properties. Export the data again from the original software with the attributes as extended data.

My GIS software wants single geometry types

A KML can mix points, lines and polygons, and the GeoJSON keeps them in one file. QGIS opens such a file as separate layers per type. If a tool rejects mixed types or a GeometryCollection, the KML to SHP converter splits the data into one Shapefile per type.

The file is too large

The free tool handles files up to 3 MB. For larger files or many files at once, use GaleriGIS Toolbox.

GaleriGIS Toolbox

$15 per month

  • No conversion limit on every GaleriGIS online converter
  • Several files at once, and larger files
  • DWG and DXF in any UTM zone or EPSG code, KML/KMZ, Shapefile, GeoJSON, Excel and coordinates
  • Files stay in your browser. Billed monthly, cancel any time

Payments are processed by Creem, our merchant of record. See our refund policy and terms.

Frequently asked questions

Is my file uploaded?

No. The KML is read and the GeoJSON is written inside your browser. Only the converter code is downloaded from our server.

Does it read KMZ?

Yes. The archive is opened for you and the main KML inside is converted: doc.kml when there is one at the top level, otherwise the first .kml file found.

How many files are free?

Three. After the third file the free quota fills up again over the next one to three days. GaleriGIS Toolbox has no limit.

Can I go the other way?

Yes, with the GeoJSON to KML converter.

I need a table of the placemarks

The KML to CSV and Excel converter writes one row per placemark with its coordinates.

More GaleriGIS tools