GPX to GeoJSON Converter
Upload your GPX file or paste its content; track, route and waypoint geometries are converted to GeoJSON, previewed on the map and ready to download.
GeoJSON Output
Related Tools
Online GPX to GeoJSON Converter
GPX: The Universal GPS Export Format
GPX (GPS Exchange Format) is an open-standard XML file format that has become the universal language of GPS data. Every major GPS platform produces GPX files: Garmin devices and Garmin Connect, Strava activity exports, Komoot route plans, AllTrails trail recordings and Wikiloc shared tracks all use GPX as their primary or secondary export format. This tool converts the track (trk), route (rte) and waypoint (wpt) geometries inside a GPX file to GeoJSON using the @tmcw/togeojson library. The whole process runs in your browser; no data is sent to a server.
- Track & Route Support: Multi-segment track and route geometries are exported as LineString features
- Waypoint Conversion: All waypoints are preserved as Point features together with their properties
- Privacy First: Your files are processed only in your browser and never uploaded to a server
How to Use
Drag or select your GPX file in the "Upload GPX File" area; alternatively, paste the GPX content into the text box. When you click "Convert", the track, route and waypoint geometries are converted to GeoJSON, a map preview is shown, and you can download the output or copy it to your clipboard.
Other Tools
To view map files in KML/KMZ format, use our KML/KMZ Viewer. To format and validate your GeoJSON data, try the GeoJSON Formatter.
Frequently Asked Questions
What is a GPX file?
GPX (GPS Exchange Format) is an open-standard XML file format designed for storing and exchanging GPS data. It is the default export format of popular GPS devices and apps such as Garmin, Strava, Komoot, AllTrails and Wikiloc, and it can hold track logs, planned routes and individual waypoints together with coordinate, elevation and timestamp data.
What is GeoJSON used for?
GeoJSON is a widely adopted open standard for encoding geographic features using JSON. It is natively supported by web mapping applications, ArcGIS, and virtually every modern GIS software package, making it the most convenient format for sharing and displaying spatial data on the web.
Are tracks, routes and waypoints all converted?
Yes. The converter handles all three core geometry types defined by the GPX standard. Track segments and routes are output as GeoJSON LineString features, while individual waypoints become GeoJSON Point features. Metadata such as name, description and elevation are preserved as feature properties.
Can I convert a Strava or Garmin GPX export?
Absolutely. GPX files exported from Strava, Garmin Connect, Komoot, AllTrails, Wikiloc and any phone GPS app are fully compatible with this converter. Simply download the GPX file from your app or device and upload it here — the tool will parse it instantly and produce valid GeoJSON output.
Are elevation and timestamp data preserved?
Yes. Elevation values (stored as the third coordinate in each position) and timestamps are preserved throughout the conversion. They appear as coordinate values and as properties on the resulting GeoJSON features, so downstream applications can use them for elevation profiling or time-based analysis.
Are my files uploaded to a server?
No. All conversion processing happens entirely inside your browser using JavaScript. The GPX file you upload or paste is never sent to any server. This guarantees complete privacy and means the tool works quickly even on a slow or offline connection.
What can I do with the converted GeoJSON?
The resulting GeoJSON file can be loaded into web mapping applications, imported into ArcGIS (ArcGIS Pro, ArcGIS Online, ArcGIS Maps SDK), or used with any GIS software that supports the GeoJSON standard. You can also paste it directly into a GeoJSON validator or formatter to inspect and clean up the output.