How to use it
- Drop the KML or KMZ file on the panel, or paste the KML text.
- Click a placemark, path or polygon for its name and description.
- Export as GeoJSON, GPX or CSV.
5 practical uses
- Open a KML from Google Earth or Google My Maps without the apps.
- Read placemark descriptions and data fields.
- Convert a KML to GeoJSON for a web map or GPX for a GPS.
- Check a KMZ sent by email before importing it elsewhere.
- Take a picture of the file's contents as a PNG.
The maths behind it
KML is XML: placemarks hold points, lines, polygons with outer and inner rings, multi-geometries and tracks, with coordinates written as longitude,latitude,altitude. The page parses the XML with the browser's parser and builds GeoJSON from it. A KMZ is a zip file, unpacked with the browser's DecompressionStream. Lengths and areas are computed as for GeoJSON.
What is read
Points, lines, polygons with holes, multi-geometries, and Google Earth tracks. Names, descriptions and extended data come through as properties. Styles are not read, so everything is drawn in blue; network links and ground overlays are skipped. To get a KML from Google My Maps, open the map's menu and choose "Export to KML/KMZ".