KML viewer

Drop a KML or KMZ file and see what is in it: placemarks, paths and polygons on the map, with their names and descriptions. Convert it to GeoJSON or GPX.

How to use it

  1. Drop the KML or KMZ file on the panel, or paste the KML text.
  2. Click a placemark, path or polygon for its name and description.
  3. Export as GeoJSON, GPX or CSV.

5 practical uses

  1. Open a KML from Google Earth or Google My Maps without the apps.
  2. Read placemark descriptions and data fields.
  3. Convert a KML to GeoJSON for a web map or GPX for a GPS.
  4. Check a KMZ sent by email before importing it elsewhere.
  5. 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".

Questions and answers

What is the difference between KML and KMZ?

KMZ is a zipped KML file, what Google Earth saves. The page unpacks it in the browser.

How do I get a KML from Google My Maps?

Open the map menu and choose Export to KML/KMZ.

Are styles read?

No. Names, descriptions and data fields come through; everything is drawn in blue. Network links and ground overlays are skipped.

Embed this tool on your website

Paste this code where the tool should appear. It shows the tool alone, without this page's text, and links back here. It is free to use; the map data credit stays on the map.

<iframe src="https://waymorphic.com/tools/kml-viewer?embed=1" width="100%" height="760" style="border:0;border-radius:12px;max-width:100%" loading="lazy" allow="geolocation; fullscreen; clipboard-write" title="KML viewer – Waymorphic Map"></iframe>

Change height to suit your page. To open the tool with a place already set, add the settings from this page's address bar (the part after #) to the end of the src. The embedded tool asks the visitor's browser for their location only when they press the button, and the allow attribute lets that work inside the frame.