How to convert GeoJSON to KML
- Choose KML or KMZ as the output.
- Drop the
.geojsonor.jsonfile into the box above. - The file downloads with the same name. Open it in Google Earth with File, Open, or drag it onto the globe.
What ends up in the KML
| In the GeoJSON | In the KML |
|---|---|
| Point, LineString, Polygon | One placemark each |
| MultiPoint, MultiLineString, MultiPolygon, GeometryCollection | One placemark holding all its parts |
A property called name | The placemark name shown in the Places panel |
A property called description | The balloon text |
| All properties | Extended data, visible in the placemark details |
| A third coordinate value | Kept as altitude |
| Features with no geometry | Left out |
A property that holds a list or a nested object is written as its JSON text, because KML extended data stores plain text only.
Colours are not carried over. GeoJSON has no standard for styling, so the placemarks get the default look of the program that opens the KML. In Google Earth Pro you can restyle a whole folder at once: right-click it, choose Properties, then Style, Color.
The file must use latitude and longitude
KML stores positions as longitude and latitude in degrees on WGS 84. The GeoJSON standard uses the same, so most files convert as they are. Some programs write GeoJSON in a projected system such as UTM or State Plane, with coordinates in meters or feet. The converter stops when it finds values outside the range of degrees and tells you. Reproject the layer to WGS 84 (EPSG:4326) in the program that made it and export again. In QGIS: right-click the layer, Export, Save Features As, set the CRS to EPSG:4326.
Common problems
"This is not a GeoJSON file"
The file is JSON but has no FeatureCollection, Feature or geometry at the top level. Files such as TopoJSON, Esri JSON or an API response that wraps the data in another object need to be exported as GeoJSON first.
"The file is not valid JSON"
The file was cut short or edited by hand and a bracket or comma is missing. Export it again, or open it in a text editor that checks JSON.
The shapes appear in the wrong place
Latitude and longitude are probably swapped in the source. GeoJSON puts longitude first: [-74.0445, 40.6892].
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 GeoJSON is read and the KML is written inside your browser. Only the converter code is downloaded from our server.
KML or KMZ?
Both hold the same data. KMZ is the KML compressed into a ZIP archive, so it is smaller to send. Pick KML when a program or a form accepts .kml only, or when you want to read the file in a text editor.
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 KML to GeoJSON converter.
I need a Shapefile instead
Use the GeoJSON to SHP converter.
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
- KML to GeoJSON 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