User Rating 0.0
Total Usage 0 times
Supports directions, places, search, and embedded coordinate URLs
Is this tool helpful?

Your feedback helps us improve.

About

GPS Exchange Format (GPX) remains the universal standard for transferring geospatial data between devices and software. Google Maps does not export GPX natively. This tool parses Google Maps URLs - including directions with multiple waypoints, shared place links, and coordinate-embedded URLs - to extract latitude/longitude pairs and convert them into valid GPX 1.1 XML. It also accepts KML file uploads for direct conversion. Coordinate precision is preserved to 6 decimal places, yielding positional accuracy of approximately 0.11 m. The tool approximates route geometry from available URL data; Google Maps encodes polylines in a proprietary format, so extracted tracks represent point-to-point segments rather than turn-by-turn paths. For full route fidelity, export KML from Google My Maps and upload it here.

google maps gpx converter kml to gpx gps waypoints route extraction gpx export navigation

Formulas

GPX files conform to the GPX 1.1 XML schema defined by Topografix. Each waypoint is encoded as:

<wpt lat="φ" lon="λ">

Where φ is latitude in decimal degrees (90 φ 90) and λ is longitude (180 λ 180). Coordinate extraction from URLs uses pattern matching against known Google Maps URL structures. The primary regex for coordinate extraction:

pattern = /@(?d+\.d+),(?d+\.d+)

For distance between extracted points, the Haversine formula is applied for display metadata:

d = 2R arcsin(sin2(Δφ2) + cosφ1 cosφ2 sin2(Δλ2))

Where R = 6371 km (mean Earth radius), φ = latitude in radians, λ = longitude in radians.

Reference Data

Google Maps URL PatternData ExtractedGPX ElementExample
/@lat,lng,zoomSingle coordinate (map center)<wpt>/@48.8566,2.3522,15z
/place/Name/@lat,lngNamed place + coordinate<wpt> with <name>/place/Eiffel+Tower/@48.8584,2.2945
/dir/Origin/DestinationStart + End coordinates<rte> with <rtept>/dir/Paris/Lyon
/dir/A/B/C/DMulti-stop route<rte> with multiple <rtept>/dir/Paris/Dijon/Lyon/Marseille
!3d(lat)!4d(lng)Embedded coordinates<wpt>!3d48.8566!4d2.3522
q=lat,lngSearch query coordinate<wpt>?q=48.8566,2.3522
KML file uploadAll placemarks + paths<wpt> / <trk>.kml file from My Maps
ll=lat,lngLinked location<wpt>?ll=48.8566,2.3522
saddr= / daddr=Legacy directions<rte>?saddr=Paris&daddr=Lyon
data=!3m1!4b1!...!3d!4dDeep-linked data coordinates<wpt>Long data parameter strings
/search/query/@lat,lngSearch area center<wpt>/search/restaurants/@48.85,2.35
Coordinates in textRaw lat,lng pairs<wpt>48.8566, 2.3522

Frequently Asked Questions

Google Maps URLs encode destinations and waypoints as coordinates, but the actual road-following polyline is computed server-side by Google's routing engine. This tool extracts the coordinate data present in the URL - origin, destination, and via points. The resulting GPX contains these as route points () connected in sequence. For full polyline fidelity, export your route as KML from Google My Maps, then upload the KML file here for conversion.
The converter preserves up to 6 decimal places of latitude and longitude, matching the precision embedded in Google Maps URLs. Six decimal places correspond to approximately 0.11 m positional accuracy, which exceeds the precision of consumer GPS receivers (typically 3-5 m). No rounding is applied during extraction or GPX generation.
Yes. Multi-stop direction URLs (e.g., /dir/Paris/Dijon/Lyon/Marseille) are parsed to extract each stop as a route point. The tool generates a single element with ordered entries. If coordinates are embedded in the URL for each stop, they are extracted directly. If only place names appear without coordinates, the tool will note those names but cannot geocode them without an API key - in that case, use the coordinate-containing URL from your browser's address bar after the route loads.
Open Google Maps in a desktop browser. Navigate to your location or set up your directions. Wait for the page to fully load, then copy the complete URL from the browser's address bar. Do not use shortened goo.gl or maps.app.goo.gl links - these redirect and do not contain coordinate data. The URL should contain visible coordinate numbers like /@48.8566,2.3522 or data parameters with !3d and !4d values.
A waypoint () is a single point of interest with a name and coordinates. A route () is an ordered list of significant points () that a GPS device uses to calculate navigation between them. A track () is a recorded path with densely-spaced points () representing actual movement - a GPS breadcrumb trail. This tool generates waypoints from single locations, routes from directions, and tracks from KML paths that contain dense coordinate sequences.
The output conforms to GPX 1.1 schema (xmlns http://www.topografix.com/GPX/1/1), which is universally supported by Garmin, Wahoo, Komoot, Strava, Ride with GPS, Locus Map, OsmAnd, and virtually all GPS software. Import the .gpx file directly into your device or application. Some devices limit route point count - consult your device manual if routes with more than 200 points are truncated.