Map file converter

Open a GeoJSON, KML, KMZ, GPX or CSV file and save it as any of the others. The map shows what was read, so you can check before you download.

How to use it

  1. Drop the file or paste its text. The format is recognised from the content.
  2. Check the map and the feature list.
  3. Name the output and press the format you want: GeoJSON, KML, GPX or CSV.

5 practical uses

  1. Convert a KML from Google Earth to GeoJSON for a web map.
  2. Turn a GeoJSON route into GPX for a bike computer or a watch.
  3. Extract the points of a KML or GeoJSON file to a CSV.
  4. Convert a spreadsheet of coordinates into KML or GeoJSON.
  5. Unpack a KMZ into plain KML or GeoJSON.

The maths behind it

Every format is read into GeoJSON, the common form, and written out from it. KML and GPX are XML with coordinates in longitude-latitude order; CSV holds one row per feature with the centroid of any line or polygon, found from its edges. Nothing is reprojected: all four formats use WGS84 latitude and longitude.

What survives a conversion

For a CSV of coordinates going the other way, the columns need names the tool recognises: lat and lng, or latitude and longitude.

Questions and answers

Which conversions are supported?

Any of GeoJSON, KML, KMZ, GPX and CSV to GeoJSON, KML, GPX or CSV, in the browser.

What is lost in a conversion?

GPX keeps only waypoints and tracks, so properties other than names are dropped. CSV keeps points exactly but reduces lines and polygons to their centre.

Does the CSV need special columns?

A CSV going in needs latitude and longitude columns named lat and lng, or latitude and longitude.

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/map-file-converter?embed=1" width="100%" height="760" style="border:0;border-radius:12px;max-width:100%" loading="lazy" allow="geolocation; fullscreen; clipboard-write" title="Map file converter – 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.