How to open a GPX file on Mac
On Mac, drag the .gpx file from Finder onto Safari at viewmygpx.com — the route renders in the browser with no install, no sign-in, and no upload. For a desktop app, Google Earth Pro for Mac is the strongest free option (3D terrain rendering, GPX direct via File → Import). macOS itself has no native GPX viewer, so every working path goes through a browser or a third-party desktop app.
Try it — drop a GPX file
The viewer below runs entirely in Safari, Chrome, Firefox, Arc, or any modern Mac browser. Drag a .gpx from Finder onto the drop zone, or click to choose a file. If you don't have a file to hand, the sample GPX files page has a dozen ready-to-use examples — click any sample to load it into the viewer.
Drop your GPX file here
or browse to choose
Parsed locally · never uploaded
What macOS does and doesn't do natively
macOS has no built-in GPX viewer. The system recognizes the .gpx extension as a file, knows it is XML-based, but ships no application that renders the route. Concretely:
- Quick Look (Spacebar in Finder). macOS shows a plain-text preview of the XML. That is the file's real content, but not the route on a map. Quick Look uses per-file-type plugin generators (.qlgenerator bundles); no first-party generator ships for GPX. Open-source community generators exist but require manual install and break on macOS updates.
- Finder double-click. Opens the system "Choose Application" dialog because no app is registered as the default GPX handler. The user has to pick something every time.
- Preview.app. Cannot open GPX. Preview is for PDFs and images only.
- TextEdit.app. Opens .gpx as XML — useful for inspecting waypoints, trackpoints, namespaces, and extensions, but not for visualizing the route. Useful for debugging a corrupted file before going to a viewer.
- Apple Maps. Apple Maps on Mac does not import GPX in any current macOS version. The Apple Maps guide covers the workarounds.
- Safari, Chrome, Firefox. Drag-and-drop a .gpx onto a browser tab does nothing useful by default — the browser tries to download the file or display it as XML. The viewer at viewmygpx solves this by accepting the dropped file as a viewer input rather than a navigation target.
Practically, the Mac path for a GPX file is one of two: browser viewer for visualization (the fastest answer) or a dedicated desktop app for sustained editing and multi-file workflows.
The simplest path: viewmygpx in Safari
For visualization without any install, the browser-based viewer is the fastest path on Mac. The full flow takes under a minute:
- Open Safari. Or Chrome, Firefox, Arc, Brave — any modern Mac browser handles the drag-and-drop and the file picker correctly.
- Go to viewmygpx.com. Homepage is the viewer.
- Drag the .gpx from Finder onto the drop zone. Or click the drop zone to use the file picker. Both work identically.
- The route renders. The viewer parses the file and draws the polyline on the map, generates the elevation profile, and computes the stats panel. Map zoom and pan work with the trackpad as expected.
- Optional — convert and download. The viewer offers one-click conversion to KML, KMZ, CSV, or GeoJSON. The converted file lands in your Downloads folder via Safari's normal download mechanism.
Nothing uploads to a server. Parsing happens in the browser via the built-in DOMParser. The map tile provider sees the geographic area being rendered, not the file content.
The best Mac desktop apps for GPX files
For sustained work — multiple files, edits, syncing to a handheld GPS, or 3D terrain visualization — a desktop app is the right tool. The major options on Mac:
Google Earth Pro for Mac — best free desktop
Free, mature, full-featured. Imports GPX directly via File → Open or File → Import; renders the route as a 3D path over real terrain; supports KML/KMZ side-by-side; persists imported routes across sessions in the sidebar tree. The 3D terrain rendering is the strongest visual you can get for a GPX file outside a satellite-tile viewer. Download from google.com/earth/about/versions (the desktop "Earth Pro" download). The Google Earth guide covers Earth Pro vs Earth Web differences.
Garmin BaseCamp for Mac — for Garmin handheld owners
Free Mac app from Garmin. Designed primarily for managing routes destined for older Garmin handhelds and Edge units connected via USB. Imports GPX directly, supports route planning over Garmin's topo maps (purchased separately), and pushes routes to mounted devices. BaseCamp is in maintenance mode — Garmin's active investment is in Garmin Connect (web and app) — but it still works on current macOS for handhelds that don't support cloud-only workflows. The Garmin Connect guide covers the cloud path most users want today.
Cartographica — paid, Mac-native, professional
Cartographica is a Mac-native GIS application designed for cartography. It imports GPX, supports geocoding, layer management, projection handling, and export to a wide range of formats. One-time purchase (no subscription). For users doing serious cartographic work on Mac who don't want QGIS's technical depth, Cartographica is the standard choice. Overkill for casual GPX viewing.
QGIS — free, open source, professional
QGIS is the open-source desktop GIS standard. It runs on Mac (free download, free for any use including commercial), imports GPX as a vector layer, supports every format and projection that exists, and is the right tool for any workflow that involves multiple GPX files plus other geospatial data (orthophotos, elevation rasters, vector boundaries). Steep learning curve. Free.
GPX Editor (Mac App Store) — small, simple, Mac-native
Mac App Store apps named "GPX Editor" or "GPX Viewer" cover the lightweight viewing-and-trimming use case. Quality varies by developer — some are polished single-developer apps, others are basic. Useful when you want a focused Mac-native GPX viewer without Google Earth's heft. The browser viewer at viewmygpx covers most of the same use cases without an install.
Setting macOS to open .gpx in a default app
If you regularly work with GPX files and want double-click in Finder to launch a specific app, configure the default handler:
- In Finder, select any .gpx file (don't open it).
- Press ⌘+I (Cmd-I) to open Get Info.
- In the Get Info window, expand the Open with section.
- Pick the desired app from the dropdown (Google Earth Pro, Cartographica, GPX Editor, whatever you have installed).
- Click Change All... to apply the choice to every .gpx on the system.
- Confirm the prompt. macOS routes future double-clicks on .gpx to the chosen app.
To set the default to a browser-based handler is awkward — macOS expects a local app for file extensions. The recommendation is to leave the file extension unmapped (so double-click prompts) and bookmark viewmygpx.com, then drag the file from Finder to the open browser tab.
Common pitfalls
Quick Look shows a wall of XML
That is Quick Look's fallback for files without a registered preview generator. The fix is to use a renderer — drop the file into viewmygpx.com in Safari, or open in Google Earth Pro. Some open-source community Quick Look generators for GPX exist; they are not maintained on a release schedule, and macOS sometimes disables third-party generators after updates.
Double-click prompts to choose an application
macOS asks every time because no app is registered as the default GPX handler. To stop the prompt, set a default via Get Info → Open with → Change All as covered above. Or leave it unmapped and consciously route through a browser (drag onto an open viewmygpx tab) instead.
Google Earth says "the file is not a valid format"
Earth is strict about XML structure. Some converters write invalid GPX (missing namespace declarations, wrong root element, malformed XML). Open the file in TextEdit and check the first lines for a proper <gpx xmlns="http://www.topografix.com/GPX/1/1"> declaration. If the file is invalid, drop it into the viewmygpx viewer first — the viewer's parser surfaces the specific syntax error, then the editor can re-export a cleaned version.
File downloaded but Safari saved it as .xml or .txt
Some servers serve GPX with a generic Content-Type and Safari guesses the extension wrong. Rename the file to .gpx in Finder (Get Info → Name & Extension); the file content does not change, only the extension. Most apps handle the file correctly once the extension is right.
Privacy on Mac
A GPX file is plain XML — no script, no executable, no embedded tracker. The only sensitive data is the coordinates. When you drag a file onto viewmygpx in Safari, the file never leaves the Mac: parsing runs in the browser, the polyline draws in the browser, the conversion to KML or CSV also runs in the browser. The map tile provider sees the geographic area being rendered, not the file content.
Desktop apps like Google Earth Pro and Cartographica also keep the file local — they do not upload to a Google or third-party server when you import a GPX (Earth syncs your project list to your Google account, but only when you explicitly save to "My Places"). Garmin BaseCamp keeps files local. The viewmygpx privacy policy covers what the site collects (effectively nothing about the file content).
Can macOS open GPX files natively?
No. macOS has no built-in GPX viewer. Quick Look, Finder, Preview, and TextEdit all either show the underlying XML as text or do nothing useful with the file. The closest thing to a native experience is a browser-based viewer that runs in Safari — drop the .gpx onto viewmygpx.com and the route renders without any install.
Why does Quick Look show GPX as plain text?
Quick Look is the macOS preview system, and it relies on per-file-type generators (.qlgenerator bundles) to render previews. There is no first-party Quick Look generator for GPX, so the system falls back to a plain-text view of the underlying XML. Several open-source third-party Quick Look plugins exist for GPX (search 'GPX Quick Look generator'), but they require manual install and do not always survive macOS updates.
Does Apple Maps on Mac open GPX files?
No. Apple Maps on Mac, like its iOS counterpart, does not import GPX in any current macOS version. There is no Import menu, no drop target, no URL scheme. The Apple Maps page on viewmygpx covers realistic Apple-stack workarounds, including third-party Mac apps like Cartographica that handle GPX directly.
Is Google Earth Pro for Mac still free?
Yes. Google Earth Pro for Mac (formerly a paid product, free since 2015) is a full-featured desktop application that imports GPX directly via File → Open or File → Import. It runs as a standalone Mac app and is the strongest free desktop option for visualizing GPX over 3D terrain. Google has shifted future investment toward Earth Web, but Earth Pro continues to receive updates.
Can I open a GPX file in TextEdit or Preview?
TextEdit opens .gpx as XML — useful for inspecting the file content (waypoints, trackpoints, extensions, namespace declarations) but not for visualizing the route on a map. Preview cannot open GPX at all; it is a PDF and image viewer. For a useful render you need either a browser-based viewer or a desktop app like Google Earth Pro or Cartographica.
What is the best free Mac desktop app for GPX?
Google Earth Pro for Mac is the strongest free option. It handles GPX directly, renders over 3D terrain, supports KML/KMZ side-by-side, and persists imported routes across sessions. Garmin BaseCamp is the second free option — particularly relevant if you sync routes to a Garmin handheld or older Edge unit. For users who don't need a desktop app, the browser-based viewer at viewmygpx is enough.
Can I drag a GPX file onto a browser tab on Mac?
Yes. Drag the .gpx from Finder onto an open viewmygpx.com tab in Safari, Chrome, Firefox, Arc, or any modern Mac browser. The viewer's drop zone accepts the file and renders the route in seconds. This is the fastest end-to-end flow on Mac — no install, no sign-in, no upload.
How do I batch-process GPX files on Mac?
For scripted workflows, GPSBabel is the classic Mac-friendly command-line tool — it converts and merges GPX files in batch. Install via Homebrew (`brew install gpsbabel`) or download the Mac binary from gpsbabel.org. For one-off conversions to KML, KMZ, CSV, or GeoJSON, the viewmygpx homepage handles single files in the browser; for hundreds of files, a script around GPSBabel or QGIS is the right tool.
Sources
Related guides
How to open a GPX file (universal guide)
The platform-agnostic answer covering iPhone, Android, Mac, Windows, and the major mapping apps in one place.
How to open a GPX file on Windows
The Windows counterpart — Edge / Chrome flow, GPXSee, and the desktop apps that read GPX on Windows.
Open GPX in Google Earth
Google Earth Pro on Mac is the strongest free desktop option for visualizing GPX over 3D terrain.
Open GPX in Google Maps
Google Maps requires a KML conversion via My Maps — the conversion runs in Safari without leaving the page.
Open GPX in Apple Maps
Apple Maps on Mac does not import GPX. Realistic workarounds including Cartographica and the multi-stop directions approach.
GPX editor
Trim, reverse, merge, split, smooth elevation, edit metadata. All in your browser, no install on Mac.