Runs entirely in your browser — your inputs never leave this page.
How this tool works
- 1
Parses XML schemas (KML/GPX) using DOMParser and translates spatial coordinate arrays into GeoJSON specs.
- 2
Constructs valid output documents with coordinate precision preservation.
Common uses
- Converting Garmin outdoor tracks into web-ready GeoJSON
- Exporting Google My Maps KML for Leaflet or MapLibre
- Transforming CSV spreadsheets into GPS files
Frequently asked questions
Never. The entire parsing and generation process occurs inside your browser JavaScript runtime.
More in File Converters
- CSV to GeoJSONUpload any CSV file with latitude and longitude columns to instantly auto-detect coordinate headers, map points, and export standard RFC 7946 GeoJSON.
- Shapefile to GeoJSONUnpack zipped ESRI Shapefile archives (.shp, .dbf, .prj) and translate binary geometry and attribute tables directly into modern GeoJSON in browser memory.
- WKT to GeoJSONParse, validate, and visualize OGC Well-Known Text (WKT) geometries (POINT, LINESTRING, POLYGON, MULTIPOLYGON) and convert them to GeoJSON.
- CSV to GeoJSONConvert tabular CSV spreadsheets containing latitude and longitude columns into valid GeoJSON Point FeatureCollections with metadata attributes.
- GeoJSON to KMLConvert GeoJSON FeatureCollections, Points, LineStrings, and MultiPolygons into Google Earth compatible KML placemarks and overlays.
- KML to GPXConvert Google Earth KML routes and placemarks into standard GPX format compatible with Garmin, Strava, and handheld GPS units.
- GPX to GeoJSONConvert GPS exchange format (GPX) tracks, routes, and waypoints into web-friendly GeoJSON LineStrings with elevation and timestamps.
- EPSG / CRS ConverterTransform coordinates between EPSG:4326 (WGS84), EPSG:3857 (Web Mercator), UTM zones, and regional State Plane datums.
One Colorado Trail Route, Three Formats for One Hiking Club
A hiking club near Boulder, Colorado, is planning a new route up to a summit viewpoint. The trip leader sketches the route in Google Earth, placing four waypoints: the trailhead, a creek crossing, a trail junction, and the summit. She saves it as a KML file, the format Google Earth uses natively. Most of the club's members navigate with handheld GPS units and phone apps that speak GPX, not KML. She runs the file through the converter and gets a GPX with the same four waypoints. The distances from the trailhead read 0, 1.8, 3.4, and 5.1 miles, so the one-way trip is 5.1 miles (8.2 km) and the full out-and-back day is 10.2 miles, numbers the leader quotes in the trip email so nobody underestimates the day.
The waypoint data also carries the day's effort: the trailhead sits at about 5,600 feet and the summit at about 8,148 feet, so the route climbs roughly 2,500 feet (760 m) on the way up. She puts that figure next to the distance in the email, because 10 miles on the flat and 10 miles with 2,500 feet of climbing are very different Saturdays. For the printed signup sheet she converts the same KML to CSV. The spreadsheet lists each waypoint with its latitude, longitude, and notes in tidy columns, ready to print for the two members who still navigate with paper and a compass.
After the hike, a member's watch produces a GPX of the route as actually walked, which wandered slightly around a snow patch. The leader converts that GPX back to KML to view it in Google Earth next to the planned line. Because the conversion happens entirely in the browser, the club's files never pass through a stranger's server. Before the email goes out, she does one last verification pass on the converted GPX. She opens it in a free mapping app on her own phone, the same way a member would in the parking lot, and counts what loads: four named waypoints and the full route line, nothing missing and nothing extra. The files are tiny, the KML at about 18 KB and the GPX at about 12 KB, so they attach to a single email with the CSV table, and every member, whatever their device, gets a version they can open.
The club now keeps a small shared route library built the same way. Each route lives in the folder in all three formats, KML for Google Earth, GPX for devices, and CSV for printing, all converted from whichever file the route was first drawn in. When a long-time member hands over a paper-era list of nine trailheads as a spreadsheet, the leader converts that CSV straight to GPX waypoints in the same sitting, and nine hikes' worth of local knowledge joins the library instead of fading with one person's memory.
Common mistakes to avoid
- Confusing waypoints with track points. A GPX track can hold thousands of recorded points, while a waypoint list holds a handful of named stops. Converting a full track to CSV gives you thousands of rows, not a neat waypoint table.
- Assuming all styling survives conversion. KML colors and icons carry into GeoJSON only partially and into GPX not at all. If the look of the route matters, keep and share the original KML as well.
- Forgetting that KMZ is just a zipped KML. A KMZ file is a compressed package containing a KML. If a tool or recipient cannot open the KMZ, convert or extract the KML inside rather than rebuilding the route.
Pro tips
- Count features before and after each conversion; four waypoints in should mean four waypoints out.
- Open every converted file in a viewer for a ten-second spot check before sending it to the group.
- Keep the original file untouched and name outputs clearly, such as summit_route.gpx, so formats never get mixed up.
GIS Files & Interoperability: Speaking Every Map Format
GeoJSON, KML, GPX, Shapefiles — what each format is for, how to convert between them without losing data, and how to fix the files that refuse to open. Written for Universal Geospatial File Converter (GeoJSON, KML, GPX, CSV) and the everyday mapping tasks around it.
Vector vs. Raster: The Two Tribes
Every map file belongs to one of two families. Vector formats store geometry as math: points with coordinates, lines as point sequences, polygons as closed rings. They scale forever, stay tiny, and carry attributes like names and populations. GeoJSON, KML, and Shapefiles are all vector.
Raster formats store grids of cells, like digital photos. Satellite imagery, scanned paper maps, and elevation models are raster. They capture continuous reality beautifully but balloon in size and pixelate when zoomed. GeoTIFF is the GIS world's raster workhorse.
Choose vector when your data is discrete things — stores, boundaries, routes. Choose raster when it is continuous — imagery, terrain, temperature surfaces. Converting vector to raster is easy (just draw it); going the other way needs tracing, by hand or with image-processing algorithms.
GeoJSON: The Web's Native Tongue
GeoJSON is a map format written as JSON, the same notation web developers use for data. A point looks like this — readable by humans and parseable by every browser with zero libraries. That simplicity made it the default for web maps.
Its structure is small but complete: Feature objects pair geometry with a properties dictionary, and FeatureCollections bundle many features into one file. The properties can hold anything — names, dates, measurements — which makes GeoJSON a fine carrier for analysis results, not just shapes.
GeoJSON has quirks to respect. Coordinates are always longitude-first, which trips up everyone once. It officially supports only the WGS84 datum, so reproject anything else before exporting. And it has no built-in styling — colors and icons live in a separate layer of your application, not in the file.
For big data, look at its cousins: newline-delimited GeoJSON streams features one per line for huge datasets, and FlatGeobuf packs the same model into a fast binary format. But for files under a few megabytes, plain GeoJSON remains unbeatable for simplicity.
This page shows the first two chapters. Read the complete this category field guide →