How to Export a GPX File from Google Maps
By Manish Gotame · Updated
Google Maps is the easiest place to plan a route. You can drag the line, add stops, and see traffic and terrain at a glance. When you want to follow that route on a Garmin, a bike computer or a hiking app, though, you need a GPX file. Google Maps doesn't give you one.
This guide explains why, then shows the fastest way to get a GPX file from Google Maps. It also covers the slower manual method through Google My Maps, in case you prefer it.
Can you export GPX from Google Maps directly?
No. Google Maps on the web, iPhone and Android has no option to download or export a route as GPX. You can share a route as a link or send it to your phone, but both only open in Google Maps itself. Google Takeout exports your saved places and timeline. It doesn't export the directions you plan.
That's why converters exist. A converter reads the route from the Google Maps link, rebuilds the same path point by point and writes it out in the standard GPX format.
Method 1: Use Route To GPX (about 10 seconds)
- Plan your route in Google Maps. Set the start and destination, add any stops, and pick driving, walking or cycling. Drag the line until it follows the roads you want.
- Copy the link. On a computer, copy the URL from the address bar. On a phone, tap Share and then Copy link. Short
maps.app.goo.gllinks work too. - Paste it into Route To GPX. Go to the Google Maps to GPX converter, paste the link and press the button.
- Check the preview. The route is drawn on a map so you can confirm it matches what you planned. Switch the travel mode if you need to.
- Download the GPX file. You get a standard
.gpxfile that opens in almost every GPS app and device.
Method 2: Google My Maps, then KML to GPX (manual)
If you'd rather not use a converter, Google My Maps can export KML, and KML can be converted to GPX. It takes longer:
- Open Google My Maps and create a new map.
- Add a directions layer and re-enter your start, stops and destination. Routes from regular Google Maps can't be imported, so you have to plan them again.
- Open the map menu, choose Export to KML/KMZ, select your directions layer and tick Export to a .KML file.
- Convert the KML file to GPX with a desktop tool such as GPSBabel.
My Maps directions layers also allow only a limited number of stops, and the result is often a list of turn points rather than a smooth track. For most people, Method 1 is quicker and gives a cleaner file.
What to do with the GPX file
- Garmin: import it in Garmin Connect under Courses, then send it to your watch or Edge. See how to put a Google Maps route on a Garmin.
- Strava: create a route from a GPX file on the web, then sync it to your device.
- Komoot: use Import in the planner and drop in the file.
- Phone apps: OsmAnd, Gaia GPS and most hiking apps open GPX files directly from your downloads.
Tips for a better GPX file
- Pick the right travel mode before copying the link. Cycling and walking routes follow different paths from driving routes.
- Add stops in Google Maps to force the route along roads you prefer. The GPX file follows exactly what Google Maps drew.
- Very long multi-day routes are easier to follow if you split them into one route per day.
Frequently asked questions
Is it free to export GPX from Google Maps this way?
Yes. Route To GPX is free. You sign in with Google before converting, and there's nothing to install.
Does it work on iPhone and Android?
Yes. Copy the link from the Google Maps app with Share, open Route To GPX in your phone's browser and paste it.
Can I get a GPX track for a route I've already driven?
This guide covers planned routes. For trips you've already made, Google Takeout can export your Timeline, but that data is in Google's own JSON format and needs separate conversion.
Ready to convert your route?
Convert Google Maps to GPX