Convert KML to GeoJSON, Free and Private

Convert a KML file (from Google Earth or Google My Maps) into GeoJSON, in your browser. Ready for Leaflet, Mapbox, or MapLibre.

Universal File Converter: Private & Fast

Convert images, videos, audio, and documents directly in your browser. Your files never leave your device, ensuring 100% privacy and security.

Geodata Converter

Convert KML or GPX to GeoJSON, or GeoJSON back to KML or GPX, locally.

100% In-Browser Processing

Your files are processed strictly in local device memory. Nothing is uploaded. See how, and check for yourself.

How It Works

How to convert files with DuckConvert

1

Select Your File

Choose the file you want to convert from your device or drag and drop it into the converter.

2

Choose Output Format

Select your desired output format and any specific settings for your conversion.

3

Convert & Download

Click "Start Conversion" and wait for the local process to finish, then download your new file.

This conversion runs entirely in your browser, so nothing is uploaded. Check it yourself in the DevTools Network tab.

KML is Google Earth and Google My Maps' native export format, but most modern web mapping libraries (Leaflet, Mapbox GL, MapLibre, most GIS web stacks) expect GeoJSON instead. This parses placemarks, paths, and polygons out of the KML and re-encodes their coordinates and metadata as standard GeoJSON features, ready to drop straight into a map.

Google's format versus the web's format

KML came out of Google Earth and carries a lot more than geometry. A placemark can have a custom icon, a line can have a colour and width, a folder can group features, and a balloon can hold formatted HTML that appears when you click. It is a presentation format as much as a data one.

GeoJSON is deliberately narrower: geometry plus arbitrary properties, and nothing about how any of it should look. Converting therefore keeps the shapes and the attached data while dropping the styling, on the reasonable assumption that whatever renders the GeoJSON, Leaflet, Mapbox, QGIS or a Python notebook, will apply its own.

The coordinate order that catches everyone

GeoJSON specifies coordinates as longitude first, then latitude. This trips people up constantly, because most of us say and write coordinates the other way around, and because a great deal of mapping software accepts latitude first. Get it backwards and your points do not error, they just appear somewhere implausible, often in the ocean off West Africa where the axes cross at zero.

KML uses the same longitude-first order, so a straight conversion preserves it correctly. The mistake usually enters later, when someone hand-edits a coordinate or joins the data to a spreadsheet that stored the pair the human way round. If your features land in the wrong hemisphere, that swap is the first thing to check.

Converting KML to GEOJSON, step by step

  1. Drop your .kml file into the box above.
  2. Confirm GeoJSON is selected as the output format.
  3. Click Convert. Parsing happens locally in your browser.
  4. Download the resulting .geojson file.

Frequently Asked Questions on Secure KML to GEOJSON Conversion

Do KML styles like icons and colors carry over?

No. GeoJSON has no built-in styling model, so KML's visual styling (icons, line colors, etc.) doesn't transfer. Only the geometry and any name/description metadata do.

Does it handle multiple placemarks or layers in one file?

Yes. Every placemark, path, and polygon in the KML becomes its own GeoJSON feature in the output.

Will this work with a My Maps export?

Yes. Google My Maps exports KML (or KMZ, which you'd need to unzip first), and this parses that KML format directly.