Converter · Google Maps to GPX

Convert Google Maps to GPX

Paste your Google Maps URL below to instantly convert it to a GPX file.

gpx2maps · converter Ready

Use "Google My Maps / KML" if you customized the route by dragging the line — those drag points are not saved in a normal Google Maps URL, but they are preserved in a My Maps export.

Paste any Google Maps directions URL, including shortened links (goo.gl, maps.app.goo.gl)

Supported URL formats:

  • • Google Maps directions: google.com/maps/dir/...
  • • Shortened links: goo.gl/maps/... or maps.app.goo.gl/...
  • • Place names or coordinates both work

Guide

How to Convert Google Maps Routes to GPX Files

Last updated: November 23, 2024

Google Maps doesn't directly offer a 'Save as GPX' option, but there are ways to get a GPX file from your Google Maps route. This guide will show you how. Whether you want to use a Google Maps route on your GPS device or in another app, here's how to go from Google Maps to GPX.

Why Convert Google Maps to GPX?

Google Maps is excellent for planning routes, but many GPS devices and outdoor apps require GPX files for navigation. Converting your Google Maps routes to GPX allows you to:

  • Load routes onto GPS devices like Garmin, Wahoo, or handheld GPS units
  • Import routes into hiking or cycling apps
  • Share your routes with friends who use different navigation tools
  • Store your routes in a universal format that works anywhere

Option 1: Using a Web Tool (Maps to GPX)

The easiest method is using an online converter tool that can transform Google Maps URLs into GPX files.

Step-by-Step Instructions:

  1. Create your route in Google Maps

    Enter your starting point and destination in Google Maps and get directions. You can adjust the route by dragging points on the map.

  2. Get the share link for your route

    Click the "Share" button and copy the URL that Google Maps provides.

  3. Open our Maps → GPX converter

    Use the built-in converter at the top of this page — or open the Maps → GPX tab on our homepage. No browser extension, no desktop install.

  4. Paste your Google Maps link

    Paste the copied URL into the converter's input field.

  5. Generate and download your GPX file

    Click the convert or download button to get your GPX file.

Privacy note:

GPX2Maps does not store your route data beyond the conversion itself. Your Maps URL is parsed, the GPX is generated, and nothing is retained unless you are signed in and choose to save the route to your account.

Option 2: Using Google My Maps + KML Export

If you've created a custom route in Google My Maps, you can export it as KML and then convert that to GPX:

Step-by-Step Instructions:

  1. Create your route in Google My Maps

    Go to Google My Maps and create or open a map with your route.

  2. Export your map as KML

    Click the three-dot menu next to your map name, select "Export to KML/KMZ", and download the KML file.

  3. Skip the KML detour entirely

    Instead of exporting KML and running it through a separate tool, paste your Google Maps route URL directly into our Maps → GPX converter and download the .gpx in one step.

  4. Download your GPX file

    After conversion, download the resulting GPX file.

This method is particularly useful for complex routes or when you need precise control over waypoints and route segments.

Option 3: Advanced Methods (Browser Extensions or Scripts)

For more tech-savvy users, there are additional methods to convert Google Maps routes to GPX:

  • Browser Extensions: Some browser extensions can capture Google Maps data and export it as GPX.
  • API Access: Developers can use the Google Directions API to retrieve route data and convert it to GPX format.
  • Python Scripts: For advanced users, Python scripts can automate the process of converting Google Maps URLs to GPX files.

These methods require more technical knowledge but can offer greater control and automation possibilities.

Tips & Considerations

  • Route Fidelity: GPX converted from Google Maps might not include all turn-by-turn instructions. The GPX will contain the path coordinates, but specific navigation prompts may be lost in conversion.
  • Verify Your GPX: Always check your GPX file in a viewer or on your device before relying on it for navigation. Some conversions may have inaccuracies.
  • Terms of Service: Be aware that using Google Maps data should comply with Google's Terms of Service. Personal conversions are typically acceptable, but large-scale or commercial use may require proper licenses.
  • File Size: GPX files from complex routes can be large. Some GPS devices have limitations on how many waypoints they can process.

Frequently Asked Questions

Can I export a Google Maps route to GPX directly?

No, Google Maps doesn't have a built-in feature to export routes as GPX files. You'll need to use one of the conversion methods described in this guide.

Will my GPX file have elevation data?

It depends on the conversion method. Some converters might include elevation data, while others provide only latitude and longitude coordinates. For accurate elevation data, you might need to use a specialized tool that can add elevation information.

Can I convert multiple Google Maps routes at once?

Most online converters handle one route at a time. For batch conversion, you might need to use a script or a specialized tool that supports multiple conversions.

Conclusion

While Google Maps doesn't export GPX natively, the methods outlined in this guide provide effective workarounds for getting your routes into GPX format. Choose the option that best matches your technical comfort level and specific needs.

And remember, if you have existing GPX files you want to put into Google Maps, you can use our GPX to Google Maps converter:

Pro Lifetime

Unlimited conversions for $29.99, forever.*

One-time payment. Convert as many GPX files and Google Maps routes as you want — in both directions. Every future feature included.

*Lifetime and unlimited apply to personal, individual use and are subject to our fair use policy. See Terms.