Skip to the converter

KML to GeoJSON converter, without the upload.

Turn Google Earth KML files into GeoJSON for web maps. It is converted in your browser, so the file never leaves your device.

Drop KML files here

or choose from your computer paste with Ctrl V

Ready · other file types work too0 bytes uploaded, ever

Convert to

How to convert KML to GeoJSON

  1. Add your KML map files

    Drop KML files onto the box above, or click it to choose them. ToAny reads the file's contents to detect the type, so a wrong extension does not matter.

  2. GeoJSON is already chosen

    Press Convert. There is nothing else to set. The work happens in this tab.

  3. Download

    Save the GeoJSON, or download everything as one ZIP if you converted several files.

Why ToAny

  • Private by construction

    The KML to GeoJSON converter is part of this page and runs inside your browser. Your map files are never sent to ToAny or to anyone else.

  • No upload, no queue

    Nothing has to travel to a server and back, so the conversion starts the moment you press Convert, even on a slow connection.

  • Free, without an account

    No sign-up, no email address and no watermark. Add several files and download them together as a ZIP.

KML to GeoJSON: what to expect

KML is the format of Google Earth and Google My Maps, but web mapping libraries such as Leaflet and Mapbox, GitHub's map preview and most GIS tools work with GeoJSON. Placemarks, lines and polygons become features with their names and descriptions as properties. KML's styling and tours have no equivalent in GeoJSON.

Every format is read into plain GeoJSON features and written out from there, so coordinates, names and properties carry over wherever the target has a place for them. XML that declares custom entities is refused, and KML files are parsed without touching the network. Coordinates are written longitude first, then latitude, as GeoJSON requires.

KML vs GeoJSON

KML

KML map file

KML is the format of Google Earth. It stores placemarks, lines and areas with names, descriptions and styling in XML, and can add camera paths for tours. It became an Open Geospatial Consortium standard in 2008. A KMZ is the zipped form.

Opens in Google Earth, Google My Maps, QGIS and most GIS tools

KML converter
GEOJSON

GeoJSON map data

GeoJSON describes geographic features, points, lines and polygons, with their properties as plain JSON. It is the standard format for web maps. Coordinates are in WGS 84 and written longitude first, then latitude, the reverse of how most people say them.

Opens in QGIS, Leaflet, Mapbox, geojson.io, GitHub's map view and most GIS tools

GeoJSON converter
KML compared with GeoJSON
KMLKML map fileGEOJSONGeoJSON map data
Stands forKeyhole Markup LanguageGeoJSON
TypeGeographic dataGeographic data
CompressionNone (XML text)None (JSON text)
Introduced2004, by Keyhole, later Google (now an OGC standard)2008, by the IETF (RFC 7946), from a community specification
Opens inGoogle Earth, Google My Maps, QGIS and most GIS toolsQGIS, Leaflet, Mapbox, geojson.io, GitHub's map view and most GIS tools
Best forPlaces, routes and tours viewed in Google EarthPoints, lines and areas on the web
File extension.kml.geojson

Questions

Are my map files uploaded anywhere?

No. The KML to GeoJSON conversion runs inside your browser, on your own phone or computer. The file is not sent to ToAny or to anyone else.

Is anything lost when converting KML to GeoJSON?

The values are kept. Anything GeoJSON has no way to express, such as formatting, formulas or nesting, is simplified or left out.

Can I convert several KML files at once?

Yes. Add as many as you like, convert them together and download each result or all of them as one ZIP.

How do I convert KML to GeoJSON on Windows, Mac, iPhone or Android?

The steps are the same everywhere because ToAny runs in the web browser: open this page in a current version of Chrome, Edge, Safari or Firefox, add the KML file, press Convert and save the GeoJSON. There is nothing to install.

Is there a file size limit?

Yes. Files up to 150 MB are accepted; a larger file is refused with a message. Beyond that the limit is your device's memory, since nothing is uploaded; a computer copes with large files better than a phone.