Free GPX sample, test and dummy files
The XML format that GPS devices and fitness apps use for waypoints, routes and recorded tracks. Download valid GPX test files in 19 exact sizes, from 1 KB to 100 MB, each with a checksum. Or create one of any size up to 1 GB.
- Extension
- .gpx
- MIME type
- application/gpx+xml
- Kind
- Text
- Category
- GIS
Create a GPX file of any size
Choose any size from 700 bytes to 1 GB. The file is made in your browser, so nothing is downloaded from our server. Smaller files usually finish quickly; generation time depends on your device and format. Larger ones are streamed straight into your downloads list in browsers that support it (current Chrome, Edge and Firefox on computers and Android); elsewhere, such as Safari and every browser on iPhone and iPad, the largest size is lower and is shown below.
GPX files by size
Every file below is a valid GPS Exchange Format file of exactly the stated size. Open a file's page for its checksum and contents, and to preview it in your browser before downloading.
| File | Size | Contents | Download |
|---|---|---|---|
| 1 KB GPX samplesample-gpx-1kb.gpx | 1 KB1,024 bytes | Track points: 3 | Download GPX |
| 5 KB GPX samplesample-gpx-5kb.gpx | 5 KB5,120 bytes | Track points: 44 | Download GPX |
| 10 KB GPX samplesample-gpx-10kb.gpx | 10 KB10,240 bytes | Track points: 96 | Download GPX |
| 25 KB GPX samplesample-gpx-25kb.gpx | 25 KB25,600 bytes | Track points: 250 | Download GPX |
| 50 KB GPX samplesample-gpx-50kb.gpx | 50 KB51,200 bytes | Track points: 506 | Download GPX |
| 100 KB GPX samplesample-gpx-100kb.gpx | 100 KB102,400 bytes | Track points: 1,019 | Download GPX |
| 200 KB GPX samplesample-gpx-200kb.gpx | 200 KB204,800 bytes | Track points: 2,043 | Download GPX |
| 500 KB GPX samplesample-gpx-500kb.gpx | 500 KB512,000 bytes | Track points: 5,091 | Download GPX |
| 1 MB GPX samplesample-gpx-1mb.gpx | 1 MB1,048,576 bytes | Track points: 10,416 | Download GPX |
| 2 MB GPX samplesample-gpx-2mb.gpx | 2 MB2,097,152 bytes | Track points: 20,810 | Download GPX |
| 3 MB GPX samplesample-gpx-3mb.gpx | 3 MB3,145,728 bytes | Track points: 31,114 | Download GPX |
| 5 MB GPX samplesample-gpx-5mb.gpx | 5 MB5,242,880 bytes | Track points: 51,720 | Download GPX |
| 10 MB GPX samplesample-gpx-10mb.gpx | 10 MB10,485,760 bytes | Track points: 103,232 | Download GPX |
| 15 MB GPX samplesample-gpx-15mb.gpx | 15 MB15,728,640 bytes | Track points: 154,745 | Download GPX |
| 20 MB GPX samplesample-gpx-20mb.gpx | 20 MB20,971,520 bytes | Track points: 206,177 | Download GPX |
| 25 MB GPX samplesample-gpx-25mb.gpx | 25 MB26,214,400 bytes | Track points: 257,190 | Download GPX |
| 30 MB GPX samplesample-gpx-30mb.gpx | 30 MB31,457,280 bytes | Track points: 308,203 | Download GPX |
| 50 MB GPX samplesample-gpx-50mb.gpx | 50 MB52,428,800 bytes | Track points: 512,253 | Download GPX |
| 100 MB GPX samplesample-gpx-100mb.gpx | 100 MB104,857,600 bytes | Track points: 1,022,370 | Download GPX |
What is a GPX file?
GPX is a small XML vocabulary for location data. It has three building blocks: waypoints, which are single named positions; routes, which are ordered lists of points to follow; and tracks, which record where a device actually went, as segments of timestamped points.
Latitude and longitude are attributes of each point, in decimal degrees on the WGS 84 datum. Elevation is in metres and time is in UTC. Version 1.1, from 2004, is the one in use everywhere.
How to recognise a GPX file
GPX files have no file signature, the magic bytes that most binary formats begin with.
No signature bytes. GPX files are identified by parsing their content.
| Extension | .gpx |
|---|---|
| MIME type | application/gpx+xml |
| Also seen as | application/xml, text/xml |
| Schema | GPX 1.1 (Topografix) |
| Root element | <gpx version="1.1"> in the namespace http://www.topografix.com/GPX/1/1 |
| Coordinates | lat and lon attributes, decimal degrees, WGS 84 |
| Elevation and time | Metres; UTC in ISO 8601 |
What to test for
These are the behaviours that most often go wrong when software handles GPX files.
- GPX writes latitude before longitude, the opposite of GeoJSON and KML. Converters that copy the numbers across without swapping them put tracks in the wrong place.
- The time element is optional. A file without it has no speed or duration, and code that assumes timestamps fails on routes drawn by hand.
- Devices add heart rate, cadence and temperature in extension elements from other namespaces. A parser must skip what it does not recognise.
Strengths of GPX
- Supported by practically every GPS device and fitness service.
- A small, stable schema that is easy to read and write.
Limitations of GPX
- No styling, and no geometry beyond points, routes and tracks.
- Large tracks are bulky: every point repeats the same element and attribute names.
Typical uses of GPX test files
- Testing activity upload in fitness and mapping apps
- Checking distance, speed and elevation calculations
- Verifying conversion to GeoJSON or KML
- Load-testing track rendering with many points
Software that opens GPX
- Garmin devices, Garmin Connect and BaseCamp
- Strava, Komoot and other fitness services
- QGIS and Google Earth
- GPSBabel and GDAL
Specifications
Related
GPX sample files: questions
- What do the GPX samples contain?
- One waypoint and one track with a single segment: a fictional walk that starts in Lisbon, with a point every five seconds, each carrying an elevation and a UTC time.
- Which media type should a server send for GPX?
- application/gpx+xml is the customary one, although it has never been formally registered. Many servers send application/xml, which works just as well for a download.
- What is the MIME type of a GPX file?
- The MIME type is application/gpx+xml. You will also meet application/xml and text/xml in practice. The file extension is .gpx.
- Is a sample GPX file the same as a dummy or example GPX file?
- Yes. Sample, test, dummy and example GPX files are different names for the same thing: a GPX file with known contents that stands in for a real one. Any file on this page will do wherever a tutorial or a test plan asks for a dummy GPX file.