GPX Distance Finder

Hiking America · Trail Tools

GPX Distance Finder

Open a GPX track · Paste coordinates · Get distance from start and to end

🗺️
Click to open or drag your GPX track file here
.gpx files only · stays on your device, never leaves your browser
Enter Coordinates

Paste or type as: lat, lon  ·  e.g. 39.123456, -84.512345

0.00
miles from start
Query History
Planning a long-distance hike?
Free GPS tracks for the Great American Rail-Trail. Comprehensive navigation for the American Discovery Trail. Built for hikers, not just cyclists.
Explore Hiking America →
hikingamerica.com  ·  Your GPX file stays on your device  ·  nothing is sent to any server
GPX Distance Finder v1.4

What This Tool Does

You have a GPX track and a set of coordinates: a campsite, a road crossing, a water source, a trailhead. You need to know where along the track that point falls.

Open your GPX file, paste in the coordinates, get the distance.

The tool measures from your coordinates to the nearest point on your track line, then reports the cumulative distance from the track's start to that point and the distance remaining to the end. Results appear instantly. You can run as many queries as you need in a single session, then export everything as a CSV spreadsheet.

A westbound hiker measures a waypoint from the track start; an eastbound hiker measures the same waypoint from the end. Both numbers come from one query.

Miles or kilometers, your choice. The toggle at the top switches every reading at once.


How to Use It

  1. Click Open and select your GPX track file, or drag it into the drop zone
  2. The tool loads your track and shows the total length and number of track points
  3. Switch to km if you want metric; miles is the default
  4. Paste or type coordinates in decimal format: lat, lon, for example 39.123456, -84.512345
  5. Hit Find or press Enter
  6. Your distance from the track start appears immediately, along with distance to the end, the coordinates, and how far off the track they fall
  7. Repeat for as many coordinates as you need
  8. Click Export history as CSV to save your results

🥾
Sizing up the climbing on that segment? Paste the same two coordinates into the Elevation Gain Calculator and read the gain, loss, and net change between them.

GPX Distance Finder Accuracy, Units, and Coordinate Format

Your file stays on your device. The GPX file never leaves your browser. Nothing is sent to any server. You aren't uploading anything; the tool reads the file locally and does all the math in your browser window.

Accuracy depends on track density. The tool measures the perpendicular distance from your coordinates to the nearest segment of the track line, then reports the cumulative distance from the start to that point. Denser tracks give more precise results. A track recorded every 50 feet reads more accurately than one with points every half mile. If a result looks off, check how many track points your file contains; the tool shows this when the file loads.

Decimal coordinates only. The tool expects latitude and longitude in decimal degree format, like 39.123456, -84.512345. If your coordinates are in degrees/minutes/seconds, convert them first. Most GPS apps and mapping tools give you decimal format by default.

Miles and kilometers both work. The toggle at the top of the tool changes every reading at once: distance from start, distance to end, total track length, and the off-track figure. CSV column headers and the exported filename follow whichever unit is active, so a metric export can't be mistaken for a mileage one. Miles is the default on every visit. Add ?units=km to the page address to open in metric each time.

The Off Track reading is your sanity check. Alongside the distance, the tool shows how far your coordinates sit from the nearest point on the track line. A few hundred feet is normal, and deliberately off-trail waypoints like a spring or a town resupply will read higher. Past 3 miles the number turns red, which usually means the wrong coordinates or a track that doesn't cover that area.


Who Built This and Why

Hiking America builds navigation tools for long-distance hikers, primarily for the American Discovery Trail and the Great American Rail-Trail. Placing waypoints accurately across thousands of miles of mapped route involves exactly this calculation, done hundreds of times. We built the tool to make that faster, then made it free because every hiker doing serious route planning runs into the same problem.

If you're planning a long-distance hike and want to know more about our GPS tracks and waypoint data, hikingamerica.com is the place to start.


Get Notified When New Trail Tools Launch

More tools are in development, including a hiking pace calculator, resupply planner, and pack weight tracker. We'll let you know when each one is ready. No spam, just a note when something useful launches.


A free tool from Hiking America: navigation resources for the American Discovery Trail and the Great American Rail-Trail.

Hiking America is an independent navigation resource. This site is not authorized by, and has no affiliation with, the American Discovery Trail Society. Our routes are our own, developed and continuously verified through field research and hiker feedback. They are not the official route of the American Discovery Trail, are not derived from American Discovery Trail Society materials, and may deviate from the route marked with signage.