KML to GeoJSON Converter
Convert KML files to GeoJSON FeatureCollections in your browser. Placemarks, folders, polygons with holes and MultiGeometry supported. Free, no upload.
What is the KML to GeoJSON Converter?
This converter turns KML from Google Earth or Google My Maps into a clean GeoJSON FeatureCollection ready for Leaflet, Mapbox, QGIS, PostGIS or any modern web-mapping stack.
- Placemark Point, LineString and Polygon support
- Polygon inner rings (holes) converted correctly
- MultiGeometry mapped to GeoJSON GeometryCollection
- Folder names preserved as a feature property
- Pretty-printed, valid GeoJSON output with download
- 100% client-side — KML never uploaded
How to use the KML to GeoJSON Converter
- 1
Paste KML into the input box, or drop a .kml file onto the upload area.
- 2
Click Convert to GeoJSON — invalid XML is reported with a clear error.
- 3
Review the FeatureCollection in the output box.
- 4
Download the .geojson file or copy it straight into your code.
About the KML to GeoJSON Converter
This converter turns KML from Google Earth or Google My Maps into a clean GeoJSON FeatureCollection ready for Leaflet, Mapbox, QGIS, PostGIS or any modern web-mapping stack. Every Placemark becomes a Feature: Points, LineStrings and Polygons — including inner rings (holes) — plus MultiGeometry are all handled.
Placemark names and descriptions are carried into feature properties, and placemarks nested inside KML Folders get a "folder" property so you can keep your Google Earth organisation as an attribute. Developers use this to migrate hand-drawn My Maps data into apps; analysts use it to pull KML layers into GeoJSON-first tooling.
Everything is parsed locally with your browser's XML engine — the KML is never uploaded to any server. Paste the markup or drop a .kml file, then download the pretty-printed .geojson.
Frequently asked questions
How do I convert a Google Earth KML to GeoJSON?
In Google Earth, right-click your folder or placemark and choose "Save Place As…" with the .kml extension (not .kmz), then drop that file into this converter and download the .geojson. Each placemark becomes a GeoJSON feature with its name and description as properties.
Can it convert KMZ files?
Not directly — KMZ is a zip archive containing a doc.kml. Unzip it first (rename to .zip if needed), then convert the inner .kml file here. Everything else works the same.
What happens to KML folders?
GeoJSON has no folder concept, so the converter writes the enclosing folder's name into a "folder" property on each feature. You can then filter or group by that property in QGIS, Leaflet or your own code to recreate the original structure.
Does it handle polygons with holes?
Yes. A KML polygon's outerBoundaryIs becomes the first GeoJSON ring and every innerBoundaryIs becomes an additional ring, which is exactly how GeoJSON represents holes. Donut-shaped zones and lakes convert without distortion.
Why are my coordinates in longitude, latitude order?
Because the GeoJSON specification (RFC 7946) mandates [longitude, latitude] positions, matching KML's lon,lat,alt order. Libraries like Leaflet flip to lat,lon internally, so never hand-swap the values — pass the GeoJSON as-is.
Is my KML file uploaded anywhere?
No. The XML is parsed by your browser's built-in DOMParser and the GeoJSON is generated in the same page. Nothing is transmitted or stored, so private property boundaries and site plans stay on your machine.
Guides for KML to GeoJSON Converter
Related tools
GeoJSON to KML Converter
Convert GeoJSON or JSON to KML for Google Earth, free in your browser. Points, lines, polygons, multi-geometries and feature properties supported. No upload.
GPX to KML Converter
Convert GPX files from your GPS device to KML for Google Earth. Waypoints, tracks and routes preserved with names and elevation — free and private.
JSON Formatter
Format, beautify and minify JSON online with 2-space, 4-space or tab indentation. Sort keys alphabetically and catch syntax errors instantly — free and private.
JSON Validator
Free online JSON validator: validate JSON and find syntax errors with the exact line and column. See root type, key counts and depth — instant and 100% private.
XML Validator
Free online XML validator and syntax checker: verify your XML is well-formed and read the parser's exact error, plus element and attribute counts. Private.