Converting KML to GeoJSON
KML is Google Earth's XML format; GeoJSON is the JSON format used by web maps, databases and most modern GIS tools. The converter reads every Placemark and turns it into a GeoJSON Feature:
<Point>→ Point<LineString>→ LineString<Polygon>with inner boundaries → Polygon with holes<MultiGeometry>→ GeometryCollection (use Split into parts if you want separate features)<name>and<description>→nameanddescriptionproperties<ExtendedData>→ extra properties- Line and fill colours →
stroke,filland related properties
KMZ files (zipped KML) are unzipped in the browser automatically. Folders are flattened; placemarks without geometry are skipped and reported.
Before downloading you can inspect the result, delete features you don't need, rename things, or change the coordinate precision (Export → Coordinate precision) to make the file smaller.
Exporting from Google My Maps
In My Maps, open the ⋮ menu → Export to KML/KMZ. Tick "Export to a .KML file" for a plain KML, or keep KMZ — both work here.