Skip to content
Map to GPSRoute studio

Open and view a GPX file.

Drop a .gpx file anywhere.

Or use the button below. The file stays in your browser.

Read a track

GPX viewer — open a GPX file and read what is actually inside it.

Drop a .gpx file on the map and the track is drawn, measured, and charted in your browser. Nothing is uploaded, and the file never leaves the device.

Upload
Never
Reading
In browser
Points
trkpt + rtept
Elevation
Estimated if missing

Step by step

How to open a GPX file online.

This viewer takes a GPX file — the XML format that nearly every GPS watch, bike computer, and mapping app can write. The browser reads the file as text, parses the XML, and draws the line. There is no upload step and no account, because there is nothing to authenticate against.

A file with fewer than two usable points has no line to draw and is refused, with the message that says so. A file that is not well-formed XML is refused too, rather than half-drawn.

The three numbers answer three different questions. Distance is measured along the points in the file, not read from a metadata field. Elevation gain is the sum of the rises in the profile. The point count tells you how much detail the file holds — a route with 40 points across 80 km is a set of instructions, not a recording. A file with no heights reports no gain and draws no profile, and the row stays empty rather than showing a zero.

  1. 01

    Choose the file

    Choose a GPX file or drop it anywhere on the map. The browser reads the file as text and parses the XML locally, so nothing is uploaded and there is no account to sign in to.

  2. 02

    Read the three numbers

    The toolbar reports the distance along the line, the elevation gain, and the point count. The profile under the map plots height against distance, so a climb early in the route is not buried inside a total.

  3. 03

    Fix it and keep it

    Move a point if the line needs a correction, rename the track, and download the updated GPX 1.1 file. The exported file keeps the coordinates you see and writes elevation to one decimal place.

Why people open one

What people use the GPX Viewer for.

Check the climb before you ride the route.

A route file says how long it is; it rarely says how much of it goes up. The gain figure here is the sum of the rises in the profile, so a 60 km loop with 1,800 m of climbing reads very differently from a flat 60 km. Read it before deciding on gearing, or on how much water to carry.

Preview a route someone sent you before it goes on your device.

Files arrive by message and by email. Opening one here shows the shape, the distance, and the climb before anything is copied onto a watch — so a route that starts 40 km from where you expected is caught on a laptop screen rather than at a trailhead.

See where a recording went wrong.

A track recorded under trees or between buildings wanders, and the line shows it. Zoom in on the suspect stretch: a spur that leaves the road and returns is a bad fix, not a detour. Seeing that as a line is faster than reading a list of coordinates, and faster than scrolling a graph of speed.

Inspect a Strava or Komoot export before importing it.

Exports from activity apps arrive as GPX, and the point count varies a lot between them. This viewer reports how many points the file holds, which tells you whether you are looking at a dense recording or a thinned route. A file with 40 points over 80 km is a set of instructions, not a recording. They also differ in whether they carry elevation at all: a route exported from a planning tool often has none, while the same route exported from a device that rode it does.

Compare the distance a file claims with the distance you will ride.

The distance shown is measured along the points in the file, not read from a metadata field. If a route is described as 100 km and the line measures 94 km, the difference is in the file — usually a straight line drawn across a section nobody recorded.

Check a paused recording that split into several segments.

Recording apps start a new segment every time you pause. This viewer reads every segment in the file and draws them as one line, so a ride recorded in four parts shows its real length instead of only its first part. That is also why a track with a gap in it can still measure the full distance.

Verify a course that is already on your Garmin.

Export the course back out of Garmin Connect and open it here. If the line is the one you planned, the device has the right file. If it is a straight line between two towns, the import took the endpoints and dropped the shape. The Garmin guide covers that round trip.

Reference

Which parts of a GPX file this viewer reads.

A GPX file can hold more than a line, and this viewer is deliberately narrow: it reads the points, the heights, and the name, and ignores the rest. Knowing what is ignored explains most surprises.

Read and drawn
<trkpt>Every track point, in every track, in the order it appears in the file.
<rtept>Route points. They join the same line as track points.
<ele>Metres. Feeds the elevation gain and the profile.
<name>Taken from the first track name, route name, or metadata name found.
GPX 1.0Read by structure rather than by version attribute, so old files open.
<metadata>Read for the track name when no track or route carries one.
Read and discarded
<trkseg>Segment boundaries are dropped. Every segment joins one line.
<time>No timeline, no speed chart, no moving-time figure.
<wpt>Standalone waypoints are not part of a line and are not drawn.
<extensions>Vendor blocks such as heart rate, cadence, and power are skipped.
TCX, FITDifferent formats. Neither is XML GPX and neither is read here.
<bounds>Not used. The map fits itself to the points it actually found.

Version matters less than people expect. A GPX 1.0 file puts the name and description at the top level; GPX 1.1 moved them into a metadata block. This viewer looks for the name in the first track, then the first route, then the metadata block, so both versions open. What it does not do is convert between them — a file read here is written back out as GPX 1.1.

Formats

GPX vs KML vs TCX vs FIT — which should you use?

GPX is the interchange format: XML, open, and read by almost everything. KML is Google Earth’s format and the one Google My Maps writes; it carries styling and folders, and it is what you get when you export a map rather than a track. KMZ is a zipped KML.

TCX is Garmin’s XML format for courses and activities, and it is the only one of these that can carry a course cue sheet. FIT is the binary format Garmin devices record natively — the smallest of the four, and not human-readable.

This page reads GPX only. KML and KMZ go through the KML converter, which reads both and writes GPX.

Choose GPX when the next thing to open the file is a device or an app. Choose KML when the next thing to open it is a person looking at a map. Choose TCX or FIT only when the destination demands them, because fewer tools can read those back.

Elevation

How the elevation gain is counted.

Open a track and the toolbar reports the elevation gain beside the distance and the point count. A file with fewer than two heights has no gain to report, and the row stays empty. The profile at the bottom of the map plots height against distance along the route, so a climb early in the line is not hidden inside a total.

Elevation gain is the sum of the upward parts of that profile. A rise counts only when it is more than one metre above the point before it; anything smaller is skipped. That rule keeps GPS jitter and rounded spot heights out of the number, so the total stays on the low side rather than inflated.

If the file carries no elevation, the map samples terrain data and fills in an estimate for every point, so a flat-looking file can still show a profile. The tiles are public Terrarium terrain, sampled at zoom 12, where one tile pixel covers roughly 40 metres on the ground at the equator. Treat those numbers as estimates — they come from a terrain model, not from a barometer and not from survey data.

Where the heights come from changes what the number means. A barometric altimeter, which most watches and phones carry, tracks air pressure and drifts with the weather. A GPS-only height is the weakest of the three. Terrain data is a model of the ground rather than a record of where you were, so it cannot see a bridge, a tunnel, or a building. The shape of the profile is more reliable than any single height on it.

The sampling interval matters as much as the heights. A file with a point every second holds more small rises than the same route thinned to a point every ten seconds, so a denser file usually reports a higher total even under the same threshold rule.

Reading a track

Tips for reading a track.

Zoom before you judge the shape.

At country scale, every route looks like a clean curve. Zoom to street level and the question you actually have — did this route take the bridge or the ferry — becomes answerable. The line is the data; the zoom is the question.

Read the profile, not the total.

Two routes with the same 900 m of climbing can feel nothing alike. One climbs steadily and one puts the same 900 m into a single 6 km wall. The profile shows which one you have; the total does not.

Trust the point count over the name.

A file called “final-route-v3” may hold 30 points. The count tells you whether you have a recording or a sketch. Below about 50 points for a day route, expect straight lines between corners.

A long straight line usually means a missing section.

Devices lose signal in tunnels, in valleys, and on a plane. When they do, some apps write a straight line between the last fix and the next one. If a route cuts across a lake, that is what happened, and the distance is understated.

Compare two files before you pick one.

Open the first, note the distance and the point count, then open the second. Two exports of the same ride often differ: one from the watch, one from the phone, one already smoothed by an app. The file with more points is not automatically the better one — it is the one with more noise in it.

Related

Questions

Frequently asked questions

What is a GPX file?

GPX is an open XML format for GPS data, published by Topografix as version 1.1 in 2004. It carries three kinds of data: waypoints, which are single named points; routes, which are an ordered plan; and tracks, which are recorded points, usually with elevation and time. Almost every watch, bike computer, and mapping app can read or write one. The format is plain text, so a GPX file also opens in any text editor.

How do I open a GPX file online?

Drop the .gpx file anywhere on the map, or use the file picker. The viewer parses the XML in your browser, draws every track point and route point as one line, and reports the distance, the elevation gain, and the point count. There is nothing to install, no extension to add, and no account to sign in to, and nothing is uploaded.

Does this viewer upload my file?

No. The file is read with the browser file reader and parsed in the page. It is never sent to Map to GPS. The only network requests the page makes are for map tiles and, when a file has no elevation, for public terrain tiles used to estimate it.

Can it open a KML or KMZ file?

Not on this page. The GPX viewer accepts .gpx files only, and a KML or KMZ file dropped here is refused. Use the KML converter, which reads KML and zipped KMZ, shows you the line, and writes it out as GPX.

Does it read route points as well as track points?

Yes. Both track points and route points are read and drawn on the same line. A planned route exported as a route element opens here just like a recorded track, and the distance is measured along the points in file order. A file that contains both is drawn as one line: every point is collected in the order it appears in the document, so a route and a track in the same file appear joined. Split them into two files if you need them apart.

What happens to a file with several tracks or segments?

Every segment and every track is joined into one line, in the order the points appear in the file. Recording apps start a new segment each time you pause, so a ride recorded in four parts shows its real length rather than only its first part. The name comes from the first track name, then the first route name, then the metadata block, so a multi-track file is labelled with the name of its first track.

Why does the elevation gain differ from Strava or Garmin?

Every app smooths elevation differently before adding up the rises, so the same file gives different totals. This viewer sums rises of more than one metre and ignores everything smaller, which keeps GPS noise out of the number. A total that reads low against another app is usually the quieter estimate, not a wrong one. The other variable is the sampling interval: a file with a point every second holds more small rises than the same route thinned to one every ten seconds.

What if my file has no elevation data?

The gain row stays empty and the profile is blank, because there is nothing to add up. You can still measure the distance and check the shape. Asking the map to sample terrain fills in an estimate for every point, and the profile appears.

How accurate is the estimated elevation?

It comes from a terrain model, not from a barometer and not from a survey. Terrain tiles are sampled at zoom 12, where one tile pixel covers roughly 40 metres on the ground at the equator, so the estimate is good enough to describe a climb and not good enough to quote as a measurement.

Can I edit the track and save it again?

Yes. Drag a point to correct the line, add points, or delete them, then download the result. The export is a GPX 1.1 track with coordinates written to six decimal places and elevation to one. It is always one track with one segment, whatever the file looked like on the way in, and it keeps only what this viewer reads: coordinates and heights. A file that came in as a route element is written back out as a track.

Is there a file size limit?

The viewer imposes none. The file is read as text in your browser, so the ceiling is your device memory rather than a server quota. A multi-day track with tens of thousands of points opens without trouble on a laptop, and the practical limit is far beyond anything a watch will record.

Can it open a TCX or FIT file?

No. A TCX file is XML but uses different element names, so no track or route points are found and the file is refused. A FIT file is binary and is not XML at all. Neither format is read here.

Does it show waypoints?

No. Standalone waypoints are single named points rather than part of a line, and this viewer draws lines. A file that contains only waypoints has no usable track and is refused with that message. If the file also holds a track, the track is drawn and the waypoints are ignored, so you still get a usable line out of it.

Does it work on a phone?

Yes. The page is a web map that runs in a mobile browser, and the file picker opens the phone file system or a cloud drive. Dropping a file is a desktop gesture, so on a phone use the picker instead. Reading a track on a phone works well; correcting a long line is easier on a screen with a mouse.

Keep going

More Map to GPS tools

Every page below runs in your browser. Drawing, reading a GPX file, converting between formats, and measuring all happen on your device — no account is needed, and no route or file is uploaded. Nothing here needs an install, an extension, or an API key. The tool directory groups the same pages by what you are trying to do, and each page says what it reads, what it writes, and what it refuses. If something here is wrong or missing, the feedback button in the header reaches a real inbox.