KML, KMZ, GPX, GeoJSON, CSV or a shapefile (parts or ZIP), up to 200 MB, converted to GeoJSON in your browser. Nothing is uploaded.

Files never leave your browserHow?

This KML to GeoJSON converter writes the placemarks of a KML as an RFC 7946 FeatureCollection for web maps (Leaflet, Mapbox, OpenLayers) and GIS. Names, descriptions and ExtendedData become properties, KML colors become simplestyle properties, and gx:Track timestamps are kept.

Last updated:

How it works

  1. Open the KML

    Press Open KML file.

  2. Choose the format

    One feature per line keeps the file readable; Coordinate decimals rounds coordinates for a smaller file.

  3. Convert

    Press Convert to GeoJSON and use the file in your map.

Features

  • simplestyle colors

    LineStyle and PolyStyle become stroke, stroke-width, fill and fill-opacity, which geojson.io and Mapbox read.

  • Times per point

    gx:Track timestamps are written as coordinateProperties.times, the convention of the @tmcw/togeojson library.

  • Folders as a property

    With several KML folders, each feature gets a layer property with its folder path.

Limits & privacy

One input can be up to 200 MB (50 MB on phones and devices with 4 GB of memory or less) and up to 5 million vertices (1 million there).

Nothing is uploaded — see the privacy page. For desktop GIS a shapefile may be needed: KML to SHP.

Example: a city sends bike lanes as a KML. Convert it to GeoJSON with 6 decimals and load it into a Leaflet map on your website, with the lane colors taken from the KML styles.

FAQ

Is the GeoJSON valid RFC 7946?

Yes, the GeoJSON is valid RFC 7946: a FeatureCollection with longitude, latitude (and altitude) in WGS 84.

What does Coordinate decimals do?

It rounds longitude and latitude: 6 decimals is about 10 cm, 5 about 1 m — usually plenty for web maps and much smaller.

Where do KML descriptions go?

Into a description property, as text with any HTML they contain.

Can I go back to KML?

Yes, you can go back to KML with GeoJSON to KML.

Can I view the result?

Open it in the GeoJSON viewer.

What about KML network links and overlays?

Network links are never fetched and image overlays are not features, so neither is written; a note lists them.

Related tools