CSV to GPX Converter
Convert CSV files with coordinates to GPX format online. Supports waypoints, tracks, and routes. Download valid GPX 1.1 files instantly.
About
GPS data exchange between applications requires strict adherence to the GPX 1.1 schema defined at topografix.com. Malformed XML tags, out-of-range coordinates (latitude outside ±90°, longitude outside ±180°), or missing namespace declarations will cause import failures in Garmin, Strava, Google Earth, and similar platforms. This converter parses raw CSV rows, validates every coordinate pair against WGS-84 bounds, and emits schema-compliant GPX 1.1 XML with proper xmlns declarations. It supports three output modes: waypoints (wpt), tracks (trk), and routes (rte).
The tool assumes a flat CSV structure where each row represents one geographic point. It approximates real-world positions only to the precision provided in your source data. Datum transformations (e.g., NAD27 to WGS-84) are not performed. Pro tip: verify your coordinate order is latitude-first. Swapped lat/lon is the most common cause of GPS tracks appearing in the wrong hemisphere.
Formulas
Each CSV row is parsed into a geographic point structure. The converter validates coordinates against the WGS-84 ellipsoid bounds before generating XML.
Where lat = latitude in decimal degrees (north positive) and lon = longitude in decimal degrees (east positive). Optional elevation ele is in meters above mean sea level.
The GPX output wraps each valid point in the appropriate XML element. For waypoints: <wpt lat="..." lon="..."><name>...</name></wpt>. For tracks: points are nested inside <trk><trkseg><trkpt> elements. For routes: points become <rte><rtept> elements.
Six decimal places provide sub-meter precision sufficient for most GPS applications.
Reference Data
| GPX Element | XML Tag | Required Attributes | Optional Children | Use Case |
|---|---|---|---|---|
| Waypoint | wpt | lat, lon | ele, name, time, desc, sym | Individual POIs, geocaches |
| Track | trk → trkseg → trkpt | lat, lon | ele, time | Recorded GPS traces, hiking logs |
| Route | rte → rtept | lat, lon | ele, name, time | Planned navigation paths |
| Metadata | metadata | None | name, time, bounds | File-level description |
| Latitude Range | −90.0 ≤ lat ≤ 90.0 | - | WGS-84 constraint | |
| Longitude Range | −180.0 ≤ lon ≤ 180.0 | - | WGS-84 constraint | |
| Elevation | ele | None (optional) | - | Meters above MSL (mean sea level) |
| Timestamp | time | ISO 8601 format | - | UTC recommended |
| GPX Version | 1.1 | - | Current standard since 2004 | |
| Schema Namespace | http://www.topografix.com/GPX/1/1 | - | Required for validation | |
| Common Delimiter: Comma | , | - | Default CSV separator | |
| Common Delimiter: Semicolon | ; | - | European locale CSV | |
| Common Delimiter: Tab | \t | - | TSV files | |
| Coordinate Precision | 6 decimal places | - | ≈ 0.11m accuracy | |
| Max File Size | 10MB | - | Browser memory constraint | |