KML to GPX Converter

Convert a KML or KMZ file to GPX, with placemarks as waypoints and paths as tracks, or a GPX file to KML, without uploading the file.

How to convert KML to GPX

  1. Add the KML or KMZ file

    Drop the KML or KMZ on the map above, or press Choose a file. A KMZ does not need extracting first.

  2. Check what will be converted

    The panel lists every placemark, and the GPX holds what is shown: untick the folders you do not want, or press Choose folder beside one folder to convert only that folder.

  3. Download the GPX

    Press Download GPX and load the file into your GPS device or app with its own GPX import.

To check the result, open it in the GPX viewer, which shows each track's distance and elevation.

What becomes what in the GPX

GPX has three kinds of data: waypoints (single points with a name), routes (turn points leading to a destination) and tracks (an ordered list of points describing a path). The converter writes each placemark point as a waypoint with its name and description, and each path as a track with its name and description, with one track segment for each line of a multi-geometry. Altitudes become elevations in meters, and the times of a Google Earth track (gx:Track) become the times of its points.

Polygons have no GPX equivalent. Each polygon's outline, and each hole in it, is written as a segment of a closed track, one that ends where it starts, and the track's description ends with "(polygon boundary)".

What GPX cannot keep

The GPX 1.1 schema has elements for points, routes and tracks, with their names, descriptions, elevations and times, and none for line colors, line widths or fill colors, so the file's styles are not in the GPX. Folders are not kept, each placemark's data fields are left out, image overlays are left out, and HTML in descriptions becomes plain text.

Tracks or routes

A path in KML is an ordered list of points with no turn instructions, which is what GPX calls a track, so the converter writes every path as a track; there is no option to write routes. A route in GPX is something else: an ordered list of waypoints, a series of turn points leading to a destination. The routes of a GPX file you open here are written as tracks too.

GPX to KML

Add a GPX file, press Export and choose Download KML; the main button on this page stays Download GPX. Tracks and routes become paths, waypoints become placemarks with their names and descriptions, and the other GPX fields, such as the comment, type, symbol, links and a waypoint's time, become data fields on each placemark. The times of a track's points are written as text in one data field, not as KML time elements. Google Earth on the web cannot import GPX directly: Google's help says to convert it to KML, GeoJSON, CSV or a Shapefile first.

KMZ to GPX

There is no need to extract the KML from a KMZ before converting it: the converter unzips the archive in your browser and reads the KML inside. The icons and images packed in the KMZ are not part of the GPX.

Your file is not uploaded

Many KML to GPX converters post the file to their server and send a GPX back. Here the GPX is written in your browser, and the file, with every place it marks, never leaves your device. Map pictures come from another server only if you choose a base map other than Outline.

Frequently asked questions

How do I convert KML to GPX?

Add the KML or KMZ file to this page and press Download GPX. Points become waypoints and paths become tracks.

What is the difference between KML and GPX?

GPX is a format for exchanging GPS data (waypoints, routes and tracks) between devices and apps. KML is a format for showing geographic data in Earth browsers such as Google Earth, with styles, folders, descriptions and image overlays. Both are XML.

Can I convert KMZ to GPX?

Yes. Add the KMZ as it is; the converter reads the KML inside it.

What happens to polygons?

Each polygon's outline becomes a closed track, and each hole another segment of that track, because GPX has no polygons. The fill is not kept.

Are colors kept?

No. GPX has no elements for colors or line widths, so styles are left out.

How do I convert GPX to KML?

Add the GPX file and choose Download KML under Export. Tracks and routes become paths and waypoints become placemarks.

Is my file uploaded?

No. The conversion runs in your browser and the file never leaves your device. Google Analytics, which counts visits, learns that a GPX file was saved, never what was in it.