GeoJSON to KML
Google Earth and My Maps are built around KML, and a .geojson from an open-data portal or QGIS isn't that. Drop it here and get a KML with the same features and their attributes.
How it works
- Drop your file in the box above, or click it to pick one.
- Pick the output format and press Convert.
- Download the result. Nothing was uploaded on the way.
Is it safe?
Reading the GeoJSON and writing the KML both happen inside this browser tab, and neither file is sent anywhere.
Want to check? Open your browser DevTools, switch to the Network tab and convert a file. Or convert a small file once, because each converter downloads its code the first time, then go offline and convert your real file.
Check the coordinates first
RFC 7946 says GeoJSON is longitude and latitude in WGS84 degrees, and KML assumes the same. Some tools still export GeoJSON in a projected system, Web Mercator metres or a national grid, often with a crs entry at the top. Numbers like 1,642,000 are far outside -180 to 180, so those points get skipped and a note tells you how many.
The fix is on the export side: save the layer again with EPSG:4326 as the CRS (in QGIS that's a drop-down in the export dialog) and convert that file.
Where the properties end up
nameortitlebecomes the placemark's name, the label you see on the map.descriptionordescbecomes the text in the pop-up balloon.time,timestamporwhenbecomes a TimeStamp, so the time slider in Google Earth has something to work with.- Every other property goes into ExtendedData as a name and value. Nested objects and arrays are written as JSON text.
- Simplestyle colours (
marker-color,stroke,stroke-width,stroke-opacity,fill,fill-opacity) become a KML Style on that placemark.marker-symbolandmarker-sizehave no KML twin and are ignored.
Multi-part geometries become a MultiGeometry, polygon holes stay holes, and lines are written to follow the terrain instead of cutting straight through hills. Features whose geometry is null have no place on a map and are left out, with a note.
Where GeoJSON tends to come from
City open-data portals publish bike lanes, parks and district boundaries as GeoJSON. QGIS exports it, web map tools draw it, and most map APIs return it. It's the default for anyone writing code. People who just want to look at the data, or send it to someone who uses Google Earth, end up needing KML.
The same page also writes GPX for a GPS or app and CSV for a spreadsheet; pick them in the output list.
Questions about this format
Will my attribute table show up in Google Earth?
Yes, as ExtendedData on each placemark. Most KML viewers, Google Earth included, show it in the pop-up as a small table of names and values.
Can I get a KMZ instead of a KML?
Not here; the output is a plain .kml. Google Earth and My Maps both import KML directly, so the zip is rarely needed. If you want one anyway, zip the KML and rename the .zip to .kmz.
Does it accept a .json file, or only .geojson?
The extension doesn't matter. A FeatureCollection, a single Feature, a bare geometry or an array of features all work. Items that aren't valid features are skipped with a note.
Why did every point in my GeoJSON get skipped?
Almost always a projected coordinate system: metres instead of degrees. Re-export the layer as WGS84 (EPSG:4326) and convert again.
Last updated: