How to Add GPX Files to Google Maps
In this article
Adding a GPX file to Google Maps lets you view a route you recorded or downloaded directly on the map, check its elevation profile, and share it with others. This guide covers two methods: importing a GPX file into My Maps (the easiest way to see and edit it) and opening it in the main Google Maps app on your phone.
What You'll Need
- A GPX file (from a GPS device, a fitness app, or a website like AllTrails or RideWithGPS).
- A Google account (free).
- For the mobile method: the Google Maps app on Android or iOS.
- For the desktop method: a web browser.
Step-by-Step
Method 1: Import into Google My Maps (Desktop)
- On your computer, open a browser and go to Google My Maps (mymaps.google.com).
- Sign in with your Google account if you aren't already.
- Click the red + Create a new map button.
- In the new map, click Import (the arrow icon pointing up) in the left panel.
- Select your GPX file from your computer and click Open. The file will upload and parse automatically.
- Once imported, your route appears as a blue line on the map. The left panel shows the route name and statistics like distance and elevation gain.
- To share the map, click the Share button (the person icon) and choose who can view it.
Method 2: Open in Google Maps Mobile App
- Transfer the GPX file to your phone (e.g., via email, cloud drive, or download link).
- Tap the GPX file to open it. If prompted, choose Google Maps from the list of apps.
- Google Maps will open and show a preview of the route. Tap View or Open to see it on the map.
- The route appears as a blue line on the map. You can zoom and pan to explore it.
- To keep it for later, you may need to save it as a list or take a screenshot, as the mobile app doesn't store imported GPX files permanently in your account.
Method 3: Use Google Earth (Alternative)
- If the above methods don't work, download Google Earth Pro (free) on your computer.
- Open Google Earth Pro and go to File > Open.
- Select your GPX file and click Open. The route appears in the Temporary Places panel.
- You can then export it as a KML file and import that into My Maps if needed.
Common Mistakes
- Using the wrong file type: Google Maps itself doesn't accept GPX directly on the website; you must use My Maps or the mobile app. Trying to drag a GPX into the main Google Maps page will fail.
- Opening the file on a phone without a compatible app: Some Android devices may not have a default app for GPX. Install Google Maps and try again.
- Expecting the route to appear in the main Google Maps app permanently: The mobile app only shows a temporary preview; it doesn't save the route to your account.
- Uploading a corrupt or empty GPX file: If the file has no track points, My Maps will show nothing. Check the file size and content.
Tips
- For hiking or biking routes, My Maps is the best option because it shows elevation profile and lets you edit the route.
- If you want to share a route with someone, use My Maps and share the link instead of sending the GPX file.
- You can also convert a GPX file to KML (the native Google Earth format) using online tools if you prefer to work in Google Earth.
- On mobile, if you have a fitness app like Strava, you can often export the GPX directly to Google Maps from that app's share menu.
Troubleshooting
- GPX file won't upload to My Maps: Make sure the file is not too large (over 10 MB may fail). Try converting it to KML using an online converter and upload that instead.
- Route appears but is not visible on the map: Check the layer visibility in the left panel. Click the checkbox next to the layer name to show it.
- Mobile app says "No app found to open this file": Download a file manager app or use a cloud service like Google Drive to open the file, then choose Google Maps from the share menu.
- Route is distorted or shows straight lines: This usually means the GPX file has too few points. Try regenerating the GPX from your device or app.
- My Maps doesn't show elevation data: Elevation is only available for imported GPX tracks, not for manually drawn lines. Make sure you imported a GPX track, not a route (some devices create routes without elevation).
Frequently Asked Questions
Can I import a GPX file directly into the Google Maps website?
No, the main Google Maps website doesn't support GPX import. You need to use Google My Maps (mymaps.google.com) or the mobile app.
Will my imported GPX route be saved to my Google account?
In My Maps, yes, the map (including the imported route) is saved to your Google Drive. In the mobile app, no, the preview is temporary.
Can I share a GPX route with someone who doesn't have Google Maps?
Yes, if you import it into My Maps, you can share a link that anyone can view in a browser without needing a Google account.
What is the difference between a GPX track and a GPX route?
A track records where you actually went (with timestamps and elevation). A route is a planned path with waypoints. Google Maps handles both, but elevation data is more likely to be present in a track.
Can I edit the imported route in Google Maps?
In My Maps, you can edit the route by dragging points on the map. In the mobile app, you cannot edit imported GPX files.
Is there a file size limit for GPX files in My Maps?
Yes, My Maps has a limit of 10 MB per file and 10,000 lines or shapes per map. For larger files, simplify the GPX or split it.