KML to GPX Converter
Upload a KML from Google Earth, My Maps or MAPS.ME and download a GPX 1.1 file in which pins become waypoints and lines become tracks, with altitude kept as elevation. Track timestamps are not written, so the result is for following a path, not for logging an activity.
Download Started!
How would you rate your experience with MiConvert?
What happens when KML becomes GPX
KML is the XML format that Google Earth, Google My Maps and MAPS.ME use to save pins, paths and shapes together with styles and folders. GPS handhelds, bike computers and most outdoor apps import GPX instead, a leaner format built around waypoints, tracks and routes. Whatever a KML holds beyond those has to be flattened or dropped on the way across.
The conversion runs on our server. A tolerant XML reader handles UTF-16 files, byte-order marks, stray control characters and the undeclared namespace prefixes in MAPS.ME exports. Each placemark is then turned into a geographic feature with the open-source toGeoJSON library and written out as GPX 1.1 by togpx. A zipped KMZ saved under a .kml name is recognized from its contents and unpacked first.
Pins become waypoints, and lines, including gx:Track recordings from Google Earth, become tracks. Altitude stored in the KML is written as elevation on each point. Multi-part placemarks are split into separate items, and polygons arrive as closed tracks tracing their outline, since GPX has no filled areas. Per-point times, image overlays, empty placemarks and the folder tree are not carried over, and every placemark property, from its name to its style reference, is listed in the GPX description as key=value lines.
It suits hikers and cyclists who plan a trip in My Maps or Google Earth and want it on a Garmin, a phone app or a bike computer, and anyone who would otherwise turn to GPS Visualizer or GPSBabel for a single file. A converted recording loads as a line to follow, without the pace and duration of the original activity.
How to convert a KML file to GPX
- Export from Google My Maps with the map menu's Export to KML/KMZ option. Tick the box for a .KML file and leave the network-link box unticked, so the pins and lines are stored in the file itself.
- From Google Earth Pro, right-click the folder or path under Places, choose Save Place As and select KML. If you end up with a .kmz, use our KMZ to GPX converter instead.
- Check that the map contains pins or lines. A map built only from image overlays has nothing GPX can hold.
- Upload the .kml file. Up to 50 MB per file is accepted without an account, and up to 10 files fit in one batch.
- Download the .gpx when the job finishes; most files are ready a few seconds after the upload completes.
- Load it onto your device, for example by copying it into the Garmin/GPX folder of a Garmin handheld over USB, through Garmin BaseCamp, or with your app's GPX import.
What ends up in the GPX file
- Each KML pin as a GPX 1.1 waypoint, with an elevation value when the KML stores altitude.
- LineStrings and Google Earth gx:Track recordings as tracks, with elevation on each track point where available.
- Multi-part placemarks broken into separate waypoints and tracks.
- Polygon boundaries as closed tracks you can follow around a field, lake or property line.
- Name, description and ExtendedData fields listed in each item's description as key=value lines.
- A clear error message, instead of an empty GPX, when the map holds nothing GPX can store.
KML to GPX questions
Will my My Maps routes come across as GPX routes?
They come across as tracks (trk), not routes (rte). A track is a continuous line any GPS app can show and follow; a route is a short list of turn points some devices use for turn-by-turn prompts. If your unit requires a route, GPSBabel's transform filter can turn the track into one after conversion.
Does the GPX keep elevation?
Yes, when the KML has it: altitude stored as the third coordinate becomes the ele value of each waypoint and track point. The converter does not look up terrain heights, and My Maps exports typically record an altitude of 0, which carries no real height. GPS Visualizer can add elevation from terrain data if you need a profile.
Will the file work on Garmin devices and with Strava?
It is standard GPX 1.1, which Garmin units, Garmin BaseCamp and most route planners import. Because track points carry no times, Strava and similar services will generally not accept a converted recording as an activity, and polygons appear as closed lines rather than shaded areas.
Why are the timestamps from my Google Earth track missing?
The GPX writer does not output the times stored in a gx:Track, so track points have no time element. Our KML to GeoJSON converter keeps those times in a list alongside the coordinates. For a timed GPX, try a desktop tool such as QGIS or GPSBabel and check that the output contains time tags before relying on it.
What does "No points, paths or shapes found in the KML/KMZ file" mean?
There is no geometry in the file that GPX can hold. Usually it is a My Maps export saved with the network-link option, which contains only a link back to Google, or placemarks that have a description but no coordinates. The converter never downloads linked online data, so export again with that option unticked.
Why does it say my KML only contains image overlays?
The file is made of GroundOverlay images, such as a scanned trail map draped over the terrain. GPX stores coordinates, not pictures, so nothing can be written. Convert to GeoJSON instead to get each overlay's footprint as a polygon, or keep the KML for Google Earth.
My MAPS.ME bookmarks failed with "unbound namespace prefix". What now?
MAPS.ME writes some namespace prefixes without declaring them, which strict XML readers reject. The converter patches those prefixes before parsing, so try the file again. If it still fails, open it in Google Earth Pro, save it as a new KML and convert that copy.
Is my KML kept on your servers?
The file is converted on our servers, not in your browser. Your uploaded KML is deleted as soon as the job ends, and the GPX can be downloaded for about 4 hours before it is removed automatically. The download link is a long random token that works for anyone who has it until it expires, and file names and job details are logged.