Free KML to GeoJSON · no sign-up

KML to GeoJSON converter online: turn KML into clean GeoJSON for your web map or code

Drop a KML or KMZ and get an RFC 7946 FeatureCollection: one feature per placemark, its name, description and data as properties, coordinates at full precision. The GeoJSON is read back and checked.

KML to GeoJSON converter

About the format

Why convert KML to GeoJSON

Web map libraries (Leaflet, Mapbox, OpenLayers), databases like PostGIS and most data tools read GeoJSON natively, while KML needs a plugin and an XML parser. GeoJSON also keeps data as typed properties instead of strings buried in balloons, so it is easier to filter and style.

Who it's for

Web developers putting a Google Earth or My Maps layer on a site, data analysts loading KML into Python or R, GIS users moving data into PostGIS, and anyone who wants to read a KML's data as JSON.

In short

Input
KML 2.2 or KMZ: placemarks, paths, polygons with holes, MultiGeometry, gx:Track
Output
GeoJSON FeatureCollection (RFC 7946), WGS 84 longitude/latitude, elevation kept as the third coordinate
Properties
name, description, ExtendedData and SimpleData fields; KML style colours as simplestyle properties (stroke, fill)
Check
The GeoJSON is read back and compared: feature count, every coordinate, property values

How to do it

  1. Drop the KML

    Drop the .kml or .kmz or paste a public link.

  2. Check the features

    See the placemarks on the map and their data in the table.

  3. Convert to GeoJSON

    Press Convert to GeoJSON, read the check, and download the .geojson.

Good to know

KML styles are read as simplestyle properties (stroke, fill, stroke-width), which many web maps understand; icons and labels are not. KML folders are flattened. Time stamps and spans become properties. Coordinates are copied exactly, not rounded.

What this tool doesn't do

  • Doesn't edit features or attributes (it views, measures and converts)
  • Doesn't keep the folder tree (all placemarks go into one FeatureCollection)
  • Doesn't convert ground overlays or 3D models
  • Doesn't write TopoJSON

What happens to your file

Opens on your device; we never see it. If you make a share link for a file, we keep that copy 30 days.

Opens on your device; we never see it. If you make a share link for a file, we keep that copy 30 days.

  • Opened on your device

    The viewer is a program that runs inside this web page. Your file goes from your disk into it, and nowhere else.

  • Nothing kept unless you share

    Close the tab and it's gone. We only get a copy if you make a share link for a device file, and delete it after 30 days.

  • Works with files by link

    Paste a public link and your browser downloads the file straight from where it's stored.

The details: GIS file viewer and converter

Questions

Does the GeoJSON keep the placemark names?

Yes, as a name property, together with description and every data field.

Can I convert KMZ directly?

Yes. The KMZ is unzipped and its KML converted.

Are coordinates rounded?

No. They are written exactly as read from the KML; the read-back check shows the largest coordinate difference, which is 0 m for this conversion.