How to convert KML to GeoJSON
- In Google Earth, right-click the folder or placemark, choose Save Place As and save it as KML or KMZ.
- Drop the file into the box above.
- A
.geojsonfile downloads with the same name.
What ends up in the GeoJSON
The output is one FeatureCollection. Every placemark becomes one feature.
| In the KML | In the GeoJSON |
|---|---|
| Placemark (point) | Point |
| Path | LineString |
| Polygon, with holes | Polygon with inner rings |
| MultiGeometry | GeometryCollection |
| Name and description | Properties name and description |
| Extended data | One property per field |
| Altitude | Third value of each coordinate |
| Line colour, width and fill | Properties such as stroke, stroke-width, fill and fill-opacity |
| Folders | Not kept. Features from all folders go into one list |
| Image overlays, photos and icon files | Left 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
- KML to SHP converter
- SHP to KML converter
- KMZ to SHP converter
- SHP to KMZ converter
- KMZ to KML converter
- KML to CSV and Excel converter
- KMZ to CSV and Excel converter
- CSV and Excel to KML converter
- GeoJSON to SHP converter
- SHP to GeoJSON converter
- GeoJSON to KML converter
- DWG to KML converter
- DWG to SHP converter
- DXF to KML converter
- DXF to SHP converter
- UTM zone detector
- UTM, lat long and DMS converter
- KML and KMZ viewer