Convert Google Maps Routes to GPX Files — Free Online Converter
Paste a Google Maps directions URL to convert it to GPX
Supports shortened links, dragged routes, via-points, alternative routes, and two-wheeler mode
pip install gmaps2gpxalso available as CLI
How to Convert Google Maps to GPX
Convert any Google Maps directions URL to a GPX file in three simple steps. No signup, no software to install.
1
Copy your Google Maps URL
Create your route in Google Maps with origin, destination, and any stops. Click Share and copy the link. Shortened links (maps.app.goo.gl) work too.
2
Paste and convert
Paste the URL above, choose your travel mode (driving, cycling, walking, motorcycle, or transit), and click Convert. Select from alternative routes if available.
3
Download or edit
Download the GPX file to import into your Garmin, Wahoo, or any GPS device. Or click Edit in gpx.studio to fine-tune the route before saving.
Why Choose gmaps2gpx
A modern, free Google Maps to GPX converter built for GPS enthusiasts, cyclists, hikers, and motorcycle tourers.
All travel modes
Driving, cycling, walking, transit, and motorcycle/two-wheeler routing via Google Routes API.
Dragged routes preserved
Via-points from dragged routes are automatically extracted and included in the GPX file.
Shortened URL support
Paste maps.app.goo.gl links directly. The tool automatically resolves shortened URLs.
Alternative route selection
When Google finds multiple routes, preview each one on the map and pick the one you want.
One-click gpx.studio editing
Open your GPX directly in gpx.studio to add elevation data, split tracks, or adjust waypoints.
Privacy-first
No route data is stored on the server. No account required. No tracking. 100% free.
CLI tool available
Install via pip install gmaps2gpx for batch conversion, scripting, and automation.
Motorcycle mode
Two-wheeler routing via Google Routes API — especially useful in India and Southeast Asia.
GPX 1.1 standard
Universal GPS format compatible with all devices: Garmin, Wahoo, Bryton, Suunto, and all GPS apps.
Compatible GPS Devices and Apps
GPX is the universal GPS exchange format. Files from gmaps2gpx work with every major GPS device and navigation app.
GPS Devices
Garmin Edge, Fenix, Forerunner, Zumo
Wahoo ELEMNT, ROAM, BOLT
Bryton Rider, Aero
Suunto, Polar, COROS
TomTom, Lezyne
Mobile Apps
Strava
Komoot
AllTrails
OsmAnd
Gaia GPS, Wikiloc
Desktop & Web
Garmin Connect
Ride with GPS
Google Earth
gpx.studio
Garmin BaseCamp
Frequently Asked Questions
Everything you need to know about converting Google Maps routes to GPX files.
Can I export a Google Maps route as a GPX file?
Yes. Google Maps does not natively export GPX files, but gmaps2gpx converts any Google Maps directions URL into a standard GPX 1.1 file. Just copy the URL from Google Maps, paste it into gmaps2gpx, and download the GPX file. It works with shortened links, dragged routes, and via-points.
How do I convert Google Maps directions to GPX?
Open Google Maps, create your route, click Share, and copy the link. Then go to gmaps2gpx, paste the URL, choose your travel mode (driving, cycling, walking, motorcycle, or transit), and click Convert. You can preview the route on the map, select from alternative routes, and download the GPX file.
How do I export a Google Maps route to my Garmin?
Convert your Google Maps route to GPX using gmaps2gpx, then import the GPX file into Garmin Connect (web or app). From Garmin Connect, send the course to your Garmin device. This works with all Garmin devices including Edge cycling computers, Fenix watches, and Zumo motorcycle GPS units.
What is the best Google Maps to GPX converter?
gmaps2gpx is a free, modern Google Maps to GPX converter that supports all travel modes including motorcycle/two-wheeler routing, alternative route selection with map preview, shortened URLs, dragged routes, and one-click editing in gpx.studio. It is also available as a CLI tool (pip install gmaps2gpx) for batch conversion.
Does the GPX file include elevation data?
The GPX file includes precise GPS coordinates for every point along the route. For full elevation profiles, you can open the GPX file in gpx.studio (one-click from gmaps2gpx) which automatically adds elevation data from SRTM datasets.
Does Google Maps support GPX files?
Google Maps does not natively import or export GPX files. However, you can convert Google Maps routes to GPX using gmaps2gpx, and import GPX files into Google My Maps by uploading them as a new layer.
Is gmaps2gpx free to use?
Yes, gmaps2gpx is 100% free with no hidden fees, no signup required, and no usage limits. Both the web app and the CLI tool (pip install gmaps2gpx) are completely free and open source.
Can I convert shortened Google Maps links?
Yes. gmaps2gpx automatically resolves shortened Google Maps links (maps.app.goo.gl format). Just paste the shortened URL directly — no need to expand it first.
Does gmaps2gpx support motorcycle routing?
Yes. gmaps2gpx supports motorcycle/two-wheeler routing via the Google Routes API. This is especially useful in India and Southeast Asia where two-wheeler routes differ significantly from car routes. Select the Motorcycle mode before converting.
What is the difference between GPX and KML?
GPX (GPS Exchange Format) is the standard for GPS devices and fitness apps like Garmin, Wahoo, Strava, and Komoot. KML (Keyhole Markup Language) is Google's format for Google Earth and Google My Maps. GPX is more widely supported by GPS hardware, while KML is better for Google products. gmaps2gpx outputs GPX 1.1, the most compatible format.
What GPS devices are compatible with GPX files?
GPX is a universal format supported by virtually all GPS devices and apps: Garmin (Edge, Fenix, Forerunner, Zumo), Wahoo (ELEMNT, ROAM, BOLT), Bryton, Suunto, Polar, COROS, Strava, Komoot, AllTrails, OsmAnd, Ride with GPS, Wikiloc, Gaia GPS, Google Earth, and many more.
Is my route data stored on the server?
No. gmaps2gpx processes your route in real-time and does not store any route data, URLs, or personal information on the server. Your privacy is fully protected.
Why Convert Google Maps to GPX?
Google Maps is great for planning routes, but it doesn't export to GPX — the universal format used by GPS devices and fitness apps. Whether you're planning a cycling route on your Garmin Edge, a hiking trail for AllTrails, a motorcycle tour for your Zumo, or a running course for Strava, you need a GPX file. gmaps2gpx bridges the gap: plan your route in Google Maps where it's easiest, then convert to GPX for turn-by-turn navigation on your device.