GPX to Google Maps
Open a GPX route in Google Maps or My Maps. Free, no sign-up, and the file is read in your browser.
Drop a GPX file here
Two ways to see a GPX in Google Maps
There are 2 ways to see a GPX file in Google Maps: import it into My Maps, or open a directions link.
GPX Editor builds both from the same file, so you can choose per trip. The table compares what each one keeps from your GPX.
| Directions link | Google My Maps | |
|---|---|---|
| Line on the map | Google draws its own roads between your stops | Your GPX line as you recorded or planned it |
| Limit | 9 stops, or 3 in a mobile browser | GPX up to 40 MB, KML up to 5 MB unzipped, 2,000 rows |
| Directions | Yes, with distance and travel time | No, the line is a layer you view |
| Offline | Driving only, with an offline map downloaded | Not stated by Google |
| Google account | Not needed to open the link | Needed to make the map |
Pick the link when you want Google to guide you to the end and the exact roads matter less. Pick My Maps when the line itself matters, such as a trail, a gravel loop or a planned ride.
How to open a GPX in Google Maps from this page
Start here to get a Google Maps link or a My Maps file from your GPX.
- Add your GPX. Drag it onto the Drop a GPX file here box, or press Choose a GPX file. Without a file, pick City marathon 42.19 km beside Try a sample.
- Check the preview. Your route name and line appear, so you know it's the right file. Press Full screen for a larger view.
- Get directions. Press Open in Google Maps for Google directions in a new tab. With Copy link, you can paste it into a message.
- Or make a My Maps file. Press Download KML for My Maps, then follow the import steps.
- Edit if needed. Choose Open in editor in the pop-up after your first KML download. If you closed it, open your GPX in the GPX editor.
Taking it with you? Use the phone steps.
Import a GPX into Google My Maps step by step
Import the GPX, or a KML or KMZ copy, into a new My Maps map in 5 steps. My Maps accepts all three file types.
- Sign in at Google My Maps and click Create a new map.
- In the first layer, click Import.
- Drop your GPX file, or the KML from the button above.
- Name the map so you can find it on your phone.
- In the Google Maps app, tap You, then Maps, and pick it.
Each map starts with one layer and can hold up to 10, so you can add several days as separate layers. The KML download also opens in Google Earth. For KMZ and height options, convert the GPX to KML on its own page.
Open the route on your phone
The fastest way is the QR code shown with the result. Scan it with the phone camera and the directions link opens in the Google Maps app. This page makes links for Google Maps only, not for Apple Maps.
iPhone
- Install the Google Maps app.
- Scan the QR code, or tap the link you sent yourself.
- For My Maps, open the app, tap You, then Maps.
Android
- Open the QR code or link, and choose Google Maps if asked.
- For My Maps, tap You in Google Maps, then Maps.
Why the line in Google Maps can look different
A directions link carries points, not your line. Google gets the start, the end and a few stops in between, then picks its own roads.
When a GPX has more points than the link can hold, we spread the stops evenly by distance and show how many we used. On a winding trail, Google may cut corners or choose a faster road between two stops.
For the exact line, use My Maps instead. It shows your track as you drew it, but it gives no directions along it.
Going the other way? Turn a Google Maps link into a GPX with the route rebuilt on OpenStreetMap.
How far apart your Google Maps stops will be
You can estimate the gap between stops before you set off. A computer link cuts a detailed line into 10 equal parts. A 3-stop link cuts it into 4.
| Length of your GPX line | Computer link, 9 stops | Mobile browser or QR code, 3 stops |
|---|---|---|
| 10 km | About 1 km apart | About 2.5 km apart |
| 42.19 km | About 4.2 km apart | About 10.5 km apart |
| 100 km | About 10 km apart | About 25 km apart |
| 200 km | About 20 km apart | About 50 km apart |
These gaps are measured along your line, so the straight distance between two stops can be shorter. Each stop is a recorded point near its mark. If your file's points sit far apart, expect less even gaps.
The even split applies to files with more than 11 points, or more than 5 for 3 stops. On our City marathon sample, all 10 gaps with 9 stops measure about 4.2 km.
To find your route length, open the file in the GPX Viewer.
On a computer, your QR code carries the 3-stop version, so check the last column before you scan. The link also sets no travel mode. Google Maps shows the modes it finds relevant, so check that driving, cycling or walking matches your trip.
Split a long route into shorter Google Maps links
Get closer stops by giving each leg its own link. Two 50 km legs put computer stops about 5 km apart, compared with 10 km for one 100 km link.
Make the cut on a computer:
- Open your GPX in the GPX editor and select it in the file list. Choose Crop or split, with Split the trace into set to Files.
- Click the line where your first leg should end. To make another leg, select the part you want to shorten and click it again.
- Select one part in the file list. Open File, choose Export..., keep GPX as the format and press Download file.
- Open that file on this page, then press Copy link. Label the link with its leg number, and repeat steps 3 and 4 for each part.
The cut point ends one leg and starts the next, so your links meet there. Pick a café, junction or campsite where you'd pause anyway.
Who puts a GPX into Google Maps, and for what
You get the right link or file for your trip from the four cases below.
A friend sends you a route to follow
Their GPX can give you directions on your iPhone or Android phone. Open it on this page and tap Open in Google Maps; the link begins at the file's first point.
To travel the other way, press Reverse in the GPX editor, export, and open the new GPX here. On winding trails, see why Google's line can differ.
You bring a file from Strava, Garmin or gpx.studio
Knowing what your GPX holds tells you which line you'll see. This page draws the track points (trkpt) when the file has them, and otherwise the route points (rtept).
Your waypoint-only file becomes a line through those places in file order. With just a handful of saved places, the directions link stops at every one. To keep several tracks as separate lines, use GPX to KML.
You share a plan in Google My Maps
The people you invite can open one custom map and follow your plan layer by layer. Name every imported layer clearly, such as Saturday coast road. Click Share in the left panel to add specific people, and untick a layer to hide it.
Your campsite or café waypoints can travel as named pins: convert the GPX to KML with Waypoints ticked. The KML from this page pins only the start and end.
You explore a multi-day tour in Google Earth
Each day of your tour can arrive in Google Earth as its own folder. On the GPX to KML page, tick One folder per day; the days come from your file's timestamps. Import the result into a new Google Earth project, which keeps those folders.
If your GPX won't import or show in Google Maps
Find what you're seeing below and take the next step toward your route on the map.
This page won't open your file
- It names another format. For KML or KMZ, follow Convert KML to GPX first. For FIT, TCX or GeoJSON, choose Open it in the GPX editor and export GPX.
- It says this doesn't look like GPX. Export a fresh .gpx copy from the app that made the file, then choose that copy.
- It finds only one point. Return to your source app and export the whole track or route.
A button is greyed out
Reconnect to the internet to use Open in Google Maps and Copy link. While you're offline, Download KML for My Maps still works.
My Maps won't show everything
- The import fails. Google's help says to let mymaps.google.com open your Drive, using your browser's site settings. Also compare your file with the size and row limits.
- Parts of your KML are missing. Folders, tours, timed items and image overlays may not import into My Maps. A missing folder alone doesn't mean your file is broken.
If your directions link opens but follows other roads, see what the link carries.
GPX to Google Maps FAQ
What is the best way to open a GPX file in Google Maps?
Use My Maps for your exact line, or a directions link if you want Google to guide you. GPX Editor, a free online GPX converter, makes both from one file.
Can I upload a GPX file to Google Maps or only to My Maps?
Only to My Maps. The Google Maps app has no file import, but it shows your My Maps maps under You, then Maps.
How can I convert a GPX route into a Google Maps link to share?
Follow the steps on this page, then share the copied link.
How do I open a GPX file in the Google Maps app on my phone?
Open the link, or scan the QR code, with the Google Maps app installed on iPhone or Android. For the exact line, import the GPX into My Maps on a computer first.
Does it give turn-by-turn navigation on my phone?
With a directions link, Google Maps gives directions along the roads it picks. With a My Maps layer you see your own line, without turn-by-turn directions.
What if my GPX file is too big for My Maps?
My Maps takes GPX files up to 40 MB and asks for no more than 2,000 rows. Split a bigger route into parts and import each one as its own layer.
Can I open the GPX in Apple Maps instead?
This page builds links for Google Maps only. On iPhone, install the Google Maps app and open the link there.
Is GPX to Google Maps free?
Yes. The link, the QR code and the KML download are free, with no account, and they don't use route plans. Files up to 20 MB open on the free plan.
Is my GPX file uploaded?
No. The file is read in your browser. When you open the link, only the start, end and chosen stops go to Google inside the link.
How do I view a GPX file in Google Earth?
Turn the GPX into a KML file, then open the KML in Google Earth. The KML from this page works too.
Open your GPX route in Google Maps
Get a link, QR code or KML file, free with no daily limit.