UnveilMap / Tools
GPX Viewer and KML Viewer
Open GPX, KML and KMZ files on a map, see distance, time and an elevation profile for every track, and convert GPX to KML or KML to GPX. Your files are read in this browser and never uploaded.
or drop them here. You can open several files at once.
Read in this browser. Nothing is uploaded.
Keep these routes on your own map. UnveilMap for Android imports GPX files and clears the fog along every route, then keeps clearing it wherever you go. Free, no account, no ads.
Get it on Google Play
How it works
A GPX file is a plain list of coordinates, times and heights. Open one in a text editor and you see thousands of lines of numbers, but not where you went. This page turns those numbers back into a map. It opens the formats that sports watches, cycling and hiking apps, route planners and Google Earth use, and it shows them side by side in different colours, so you can compare a planned route with the track you actually recorded.
- Get a fileFrom an app, watch or download
- Open hereRead in your browser
- View and convertMap, stats, GPX or KML
Choose one or more files and the page reads them right here in your browser, in a background thread so the page stays responsive even with files of tens of megabytes. It finds every track, route and waypoint, measures each track and draws everything on a map. Nothing leaves your device at any step, and nothing is kept after you close the page.
How to open a GPX file
GPX is an open format, but most computers and phones have no built-in app that shows it on a map. Double-click a GPX file on a computer and you usually get a question about which app to use, or the raw XML text. The quickest way on any device is a browser.
In any browser (Windows, Mac, Linux, Chromebook)
- Open this page and tap Choose GPX, KML or KMZ files, or drag the file from your Downloads folder onto the box.
- Wait a moment while the file is read. Large files take a few seconds.
- Click a track in the list to see its elevation profile and details. Move over the profile to see each spot on the map.
On an Android phone
- Download or save the GPX file, for example from an email or your sports app. It usually lands in Downloads.
- Open this page in Chrome or another browser and tap Choose GPX, KML or KMZ files.
- Pick the file from Downloads or Files. You can select several files at once.
On an iPhone or iPad
- Save the GPX file to the Files app, for example with Save to Files from Mail or Safari.
- Open this page in Safari and tap Choose GPX, KML or KMZ files, then Browse (or Choose File).
- Find the file in On My iPhone or iCloud Drive and tap it.
In Google Maps and Google Earth
Google Maps itself can’t open a GPX file. Google My Maps can: create a new map, choose Import in a layer and upload the GPX, KML or KMZ file. My Maps has limits on file size and the number of items in a layer, so very long tracks may need to be shortened first. Google Earth Pro on Windows and Mac opens GPX files directly through File → Open. Google Earth in the browser and on phones works with KML and KMZ files, so convert a GPX file to KML on this page first.
Menu names can differ a little between app versions and devices.
GPX, KML and KMZ
All three are text-based formats for places and paths, but they were made for different jobs. GPX comes from the world of GPS devices and is about recorded tracks. KML comes from Google Earth and is about showing things on a map. KMZ is simply a zipped KML file.
| Format | What it is | Typical use | What this page reads |
|---|---|---|---|
| GPX (.gpx) | GPS Exchange Format, an open XML standard | Recorded activities, planned routes, waypoints from watches, apps and GPS devices | Tracks with segments, routes and waypoints, with elevation and time |
| KML (.kml) | Keyhole Markup Language, an XML format from Google Earth, now an OGC standard | Maps in Google Earth and My Maps, lines, places and shapes with styles | Lines, gx:Track with times, points, polygon outlines, multi-geometries |
| KMZ (.kmz) | A zip file with a KML inside (doc.kml) and sometimes images | Sharing KML with icons or photos in one file | The KML inside, unpacked in your browser |
The big difference for tracks is time. GPX stores a time for every point, which is what makes speed and moving time possible. Plain KML lines have no times; KML only keeps them in the gx:Track extension that Google Earth uses for its time slider.
Where GPX files come from
- Sports apps and watches. Most running, cycling and hiking apps can export an activity as GPX, usually from the activity page on their website or from a menu called Export or Download. Watch makers’ apps and websites often offer the same.
- Route planners and tour portals. Hiking, cycling and travel websites often offer a GPX download for each tour, so you can follow it with your own device.
- GPS devices and loggers. Handheld GPS units, bike computers and small loggers save tracks as GPX that you can copy over a cable or an app.
- Google Earth and My Maps. These save KML or KMZ. Open them here as they are, or convert them to GPX.
- Friends and clubs. Shared rides and walks often arrive by email or chat as a GPX attachment.
What you will see
- Every track in its own colour. Open several files at once and tell them apart at a glance. Waypoints appear as dots with their names; tap one for its height, time and description.
- Routes and fog view. Routes shows clean lines on a light map. Fog view covers the map in a dark fog and clears it only along your tracks, the way the UnveilMap app does.
- Elevation profile. Pick a track to see how it climbs and drops. Move over the profile, or slide a finger along it on a phone, and a marker shows the spot on the map.
- Details for each track. Distance, duration, moving time, average speed, elevation gain and loss, lowest and highest point, start and end time and the number of points.
- Totals. The sum of everything visible: distance, moving time, elevation gain, tracks, points and waypoints.
- Show and hide. Tick tracks, waypoints or whole files on and off. Totals, the map and the downloads follow what is visible.
- Kilometres or miles. Switch between metric and imperial units at any time.
- Downloads. Save the visible data as one GPX or one KML file, or save the map with its totals as a PNG image.
How the numbers are calculated
Different apps calculate distance, moving time and especially elevation gain in slightly different ways, which is why the same track can show different numbers in two places. Here is exactly what this page does:
| Number | How it is worked out |
|---|---|
| Distance | The sum of the great-circle distances between consecutive points. The gap between two track segments is not counted. |
| Duration | From the earliest to the latest time in the track, breaks included. |
| Moving time | Only the stretches where you moved at least 10 metres at more than 1.5 km/h. Standing still, with the small jumps a GPS makes when you don’t move, is left out. |
| Average speed | Distance divided by moving time. |
| Elevation gain and loss | Each height is averaged with the points up to 50 metres before and after it, then rises and drops smaller than 3 metres are ignored. This removes most GPS noise without flattening real hills. |
| Lowest and highest point | The lowest and highest elevation stored in the file. |
| Start and end | The first and last time in the file, shown in your device’s time zone. |
If a file has no times, the page shows distance and elevation only. If it has no elevation, or every height is zero (common in KML files drawn by hand), there is no profile. Altitude from GPS alone is usually less precise than position, so gain from a watch with a barometric altimeter tends to be more reliable.
Convert GPX to KML and KML to GPX
Once your files are open, tap Download KML or Download GPX. The page writes one file with every track, route and waypoint that is visible, so it also works for merging several GPX files into one, or for cutting a file down to the tracks you need.
| In the file you open | In GPX | In KML |
|---|---|---|
| Track with times | Track (trk) with segments, elevation and times | gx:Track, which Google Earth can play on its time slider |
| Track or line without times | Track (trk) | LineString (MultiGeometry for several segments) |
| GPX route (rte) | Route (rte) | LineString |
| KML polygon | Track along its outline | LineString along its outline |
| Waypoint or KML point | Waypoint (wpt) with name, description, elevation and time | Placemark with the same |
Names, times and elevation are kept, and in KML each track keeps its colour from the map. What is not carried over: icons and styles of points, photos inside a KMZ, sensor data such as heart rate or cadence stored in GPX extensions, and KML folders (GPX has no folders, so all items end up in one list, each with its own name). Filled polygon areas become their outlines.
Your privacy
A GPX file often shows where you live, where you work and when you are away, so this tool was built to never touch it on a server. Your files are opened by your browser with the standard file picker, read in a background thread on your device and kept only in memory. Converted files and images are created in the browser too. There is no upload, no account, no cookies and no analytics on this site. When you close or reload the page, the data is gone.
To draw the map, your browser loads map tiles from OpenFreeMap, like any web map does for the area on screen. These requests contain nothing from your files.
Tips and troubleshooting
- “This doesn’t look like a GPX, KML or KMZ file.” The file may be a FIT or TCX file, a web page saved by mistake, or a shortcut. Export the activity as GPX from the app or website instead.
- A KMZ with nothing inside. Some KMZ files only hold pictures or a link to online data (a network link). Those links are not followed, because that would send requests to other servers.
- No elevation profile. The file has no heights, or all of them are zero. Many route planners can add elevation when you export again.
- Times look shifted. GPX stores times in UTC. This page shows them in your device’s time zone, so a track recorded abroad shows your home time.
- A straight line across the map. Usually a gap in recording inside one segment, for example a tunnel or a phone that paused the app.
- A very large file. Files of tens of megabytes work, but a phone with little memory may struggle. A computer is faster for big exports.
Keep your map growing
This page is a one-time look: it forgets everything when you close it. If you want to keep your map, the free UnveilMap app for Android imports GPX files, together with your Google Timeline, places from Google Photos and Fog of World data, and keeps the map on your phone. The fog is cleared along every imported route. From then on it records your walks and trips and clears the fog as you go, with your explored area in km², countries and regions, a passport with levels and badges, and towns nearby you haven’t visited yet. No account, no ads and no analytics. To bring a KML file into the app, convert it to GPX on this page first.
Questions
Are my files uploaded anywhere?
No. Your GPX, KML and KMZ files are read by your own browser, on your own device, and never sent to our server or anyone else. The downloads (GPX, KML and the image) are made in your browser too. When you close or reload the page, everything is gone. The only thing loaded from the internet is the map itself.
How do I open a GPX file?
Tap Choose GPX, KML or KMZ files at the top of this page and pick the file, or drag it onto the box. It works in any modern browser on Windows, Mac, Linux, Android and iPhone, with no app to install. Your tracks appear on a map with distance, time and an elevation profile.
Can I open a GPX file in Google Maps?
Not directly: the Google Maps app and website have no option to open a GPX file. What works is Google My Maps, which can import GPX, KML and KMZ files into a layer of a custom map. To just look at a file, opening it on this page is quicker.
How do I convert GPX to KML or KML to GPX?
Open the file here and tap Download KML or Download GPX. Track names, times and elevation are kept. KMZ files are unpacked automatically, so this also converts KMZ to GPX.
Can I merge several GPX files into one?
Yes. Open all of them at once (or use Add files), untick anything you don’t want in the list, and tap Download GPX. You get one file with every visible track, route and waypoint, each keeping its own name.
Why is my elevation gain different from my watch or app?
Every app smooths elevation in its own way, and small ups and downs add up quickly over a long track. GPS elevation is also less precise than GPS position. This page averages over about 100 metres of track and ignores changes under 3 metres, so its number usually sits between a raw sum and a heavily smoothed one.
Which files work, and what about FIT or TCX?
GPX 1.0 and 1.1, KML (including gx:Track with times) and KMZ, plus GPX or KML compressed as .gz. FIT and TCX files from sports watches are not supported; most apps and watch websites can export the same activity as GPX instead.
Can I keep this map and add new trips?
Not in the browser: the page forgets everything when you close it. The free UnveilMap app for Android imports GPX files, clears the fog along those routes, keeps the map on your phone and keeps clearing it as you travel.
Google, Google Maps, Google Earth and Google My Maps are trademarks of Google LLC. This tool is made by UnveilMap and is not affiliated with Google or any app maker named here. Map data © OpenStreetMap contributors, OpenFreeMap, OpenMapTiles. The example route in the picture is invented.