KML GPX GeoJSON Converter
Free online KML, GPX to GeoJSON converter. Convert GPS tracks, waypoints, routes between KML, GPX, and GeoJSON formats with style preservation.
What is KML/GPX to GeoJSON Converter?
The KML/GPX to GeoJSON Converter is a free online tool that converts between GPS file formats: KML (Keyhole Markup Language), GPX (GPS Exchange Format), and GeoJSON. This enables seamless data exchange between Google Earth, GPS devices, GIS applications, and web mapping libraries.
KML is the format used by Google Earth and Google Maps for geographic data visualization. GPX is the standard format for GPS devices and fitness trackers. GeoJSON is the web-friendly format used by modern mapping libraries like Leaflet and Mapbox.
This converter preserves important metadata like waypoint names, track descriptions, elevation data, and styling information when converting between formats.
Supported Conversions
The converter supports bidirectional conversion between:
- KML → GeoJSON: Convert Google Earth placemarks to web-friendly GeoJSON
- GPX → GeoJSON: Convert GPS tracks and waypoints to GeoJSON for web mapping
- GeoJSON → KML: Export web map features to Google Earth
- GeoJSON → GPX: Create GPS files from web map data (future)
- Preserves waypoints, tracks, routes, and placemarks
- Maintains properties, names, descriptions, and timestamps
How to Use KML/GPX Converter
Converting GPS files is simple:
- Paste your KML, GPX, or GeoJSON data, or upload a file
- The tool automatically detects the input format
- Select the desired output format (or use auto-detect)
- Choose options like preserving styles or including elevation
- Click Convert to generate the output
- Preview the result on a map or download the converted file
KML Format
KML (Keyhole Markup Language) is an XML-based format developed by Google for geographic visualization. Features include:
- Placemarks: Points of interest with names, descriptions, icons
- LineStrings: Paths and routes with styling
- Polygons: Areas with fill colors and borders
- Extended data: Custom properties and attributes
- Styles: Colors, icons, line widths
KML files (.kml) can be opened directly in Google Earth and many GIS applications.
GPX Format
GPX (GPS Exchange Format) is the standard XML format for GPS data. Features include:
- Waypoints: Individual points with coordinates and metadata
- Tracks: Recorded GPS paths with timestamps and elevation
- Routes: Planned paths with waypoints
- Metadata: Creator, time, bounds information
- Extensions: Custom data fields
GPX files (.gpx) are used by GPS devices, fitness trackers (Garmin, Strava), and mapping apps.
Applications and Use Cases
This converter is useful for:
- Converting Google Earth KML to web-friendly GeoJSON
- Importing GPS tracks from fitness apps into web maps
- Exporting web map data to Google Earth or GPS devices
- Converting hiking trails, running routes, or bike paths
- Transforming survey data between different GIS formats
- Preparing geographic data for various mapping platforms
Data Preservation
The converter preserves important data across formats:
- Coordinates: Latitude, longitude, and elevation (if present)
- Names and descriptions: Feature titles and detailed information
- Timestamps: Time data from GPS tracks
- Properties: Custom attributes and metadata
- Styles: Colors, line widths, icons (where supported)
- Structure: Waypoints, tracks, routes maintain their type
Some format-specific features may be adapted or simplified during conversion to ensure compatibility.