Convert GPX to Shapefile (SHP)
This free converter turns the waypoints, routes and tracks of a GPX file into shapefiles for QGIS, ArcGIS Pro or AutoCAD Map 3D, with .prj and .cpg files. The GPX is converted in your browser and is not uploaded. Waypoints, routes and tracks become separate shapefiles in one zip, empty GPX fields are dropped, and the elevation of each point is kept as a Z value. Tick a box to also get every track point with its time, heart rate and cadence.
Did a file not convert correctly? E-mail [email protected], ideally with a small sample file, and it will be fixed.
Key facts
- Input: GPX (.gpx). Output: Shapefile (.shp).
- Your files are not uploaded: the work is done in your browser, on your own device.
- File size: no fixed limit; very large files are limited by your device's memory.
- Needs a current browser (Chrome, Edge, Firefox or Safari) on a computer, tablet or phone; nothing to install.
- Free to use, with no sign-up.
GPX to Shapefile: why convert
GPS receivers from Garmin and Trimble, phone apps such as Strava, Komoot or OsmAnd and most field survey tools export their data as GPX. In a GIS project you often want those waypoints and tracks as shapefiles: to measure a recorded route in a projected system, to clip it with other layers, to hand it to a colleague who uses ArcGIS, or to keep it with the rest of a survey. QGIS can read a GPX directly, but every save means picking the right one of five layers and clearing a long list of empty fields. This page does it in one step: it reads the GPX with GDAL, the library QGIS uses, writes one shapefile per kind of data with only the fields that hold a value, and can reproject the result to a UTM zone or a national grid. Your track, which shows where you live and when you were out, never leaves your computer.
How to convert GPX to Shapefile
- Drop your .gpx file in the box, or click to choose it.
- Check the track on the map. If you need meters, choose a coordinate system such as a UTM zone, and tick the box if you want every track point.
- Click Convert and download a .zip with the shapefiles.
What changes when you convert
Waypoints, routes and tracks are separate shapefiles
A shapefile holds one geometry type, but a GPX can mix single points (waypoints), planned lines (routes) and recorded lines (tracks). Each kind that is present becomes its own shapefile, named waypoints.shp, routes.shp and tracks.shp, together in one .zip; a file with only a track gives one shapefile named after the GPX. A track that was paused has several segments; it stays one feature with several parts (a multipart polyline), so the gap is not bridged by a straight line.
Times are on the track points, not on the line
A line in a shapefile has one row of attributes, so the time of each recorded point cannot be part of it. Tick "Also include every track point" to get an extra shapefile, track_points.shp, with one point per position and its time, elevation, track_id, seg_id and point_id as fields. A two-hour ride recorded every second gives over 7,000 points. Waypoint times are kept in any case.
Time is stored as text
The .dbf format behind a shapefile has a date type without hours and minutes, so a time such as 2024-05-01 08:15:30 would lose its time of day. The time field is therefore written as text in the form 2024/05/01 08:15:30+00 (UTC). In QGIS you can turn it into a real date and time with the expression to_datetime("time", 'yyyy/MM/dd HH:mm:ss') when you need it for the temporal controller.
Heart rate, cadence and power become fields
Garmin watches and bike computers store heart rate, cadence, power and temperature as extensions to each track point, for example gpxtpx:hr. They are written as fields such as hr, cad, power and atemp of track_points.shp, so you can color a ride by heart rate in QGIS. The track line itself holds only name, description and the other track fields.
Elevation, field names and coordinate system
The ele value of each point becomes the Z value, so you get 3D shapefiles (PointZ, PolylineZ); a waypoint also keeps ele as a field. GPX field names are already short, but link fields such as link1_href are kept as they are. GPX is always WGS84, so the shapefile gets a .prj for EPSG:4326 unless you choose a projected system, which you need to measure lengths in meters.
About the formats
GPX
GPX (GPS Exchange Format) is the XML format used by GPS devices and apps such as Garmin, Strava and Komoot. It stores waypoints, routes and tracks with optional time and elevation. Version 1.1 from 2004, published by TopoGrafix, is the one in use today.
- Waypoints are single points; a route is a planned line through a few points; a track is the recorded path, often thousands of points.
- Tracks can carry a time stamp and elevation for every point.
- Coordinates are always WGS84 latitude and longitude.
- GPX has a fixed set of fields (name, description, symbol, type and a few more); anything else must go into extensions.
Shapefile
The Esri Shapefile is the most widely used GIS vector format. A single "shapefile" is really a set of files with the same name: .shp holds the geometry, .shx an index, .dbf the attribute table, and the optional .prj the coordinate system and .cpg the text encoding.
- Needs at least .shp, .shx and .dbf. Select them together or as one .zip.
- Field names are limited to 10 characters and text values to 254 characters.
- Each shapefile holds one geometry type only: points, lines or polygons.
- Without a .prj file the coordinate system is unknown.
Frequently asked questions
Which files do I get in the zip?
For every shapefile you get .shp (geometry), .shx (index), .dbf (attributes), .prj (coordinate system) and .cpg (encoding). Keep them together, and add the .shp file in QGIS or ArcGIS.
How do I measure the length of the track?
Choose a projected coordinate system before converting, for example the UTM zone of the area, so the shapefile is in meters. In QGIS the expression $length then gives the length of each track; in ArcGIS Pro use Calculate Geometry. The length on the ground is a little longer on hills, because the elevation is not counted.
Can I open the result in ArcGIS Pro?
Yes. Unzip the download and add the .shp files. ArcGIS Pro also has a GPX To Features tool in the Conversion toolbox; this page does the job without ArcGIS and keeps waypoints, routes and tracks apart. To combine several recordings into one track first, use the merge GPX tool.
Is my GPX uploaded?
No. Your browser reads the file and writes the shapefiles on your own device. Nothing is sent to a server, so your home address and training times stay private.