iPhone location journals

Convert KMZ to GPX, or GPX to KMZ, in your browser

Drop a KMZ, KML or GPX file. A report shows what was converted and what was left out, and the file never leaves this device.

Drop a KMZ, KML or GPX file. It stays on this device.

A KMZ becomes a GPX 1.1 file. A GPX becomes a KMZ, with a plain KML as a second download. The direction comes from the file’s content, not its name: a zip signature means KMZ, and a <gpx> root means GPX. A plain .kml is converted to GPX too. Before you download, a report lists which file inside the KMZ was read, what was converted and what was left out. No account, upload or analytics. The file is read with your browser’s File API, and a KMZ is unzipped with the browser’s built-in DecompressionStream.

Synthetic samples and the counts to expect

These files are synthetic, invented data near 0° N 10° E. They are not anyone’s recording. The buttons above load the same files. The numbers below are checked against the tool’s real output in the site’s tests.

synthetic-kmz-to-gpx.kmz holds doc.kml and files/legend.png. The KML has two Point placemarks, one LineString and one gx:Track with four <when> times. The same KML on its own is synthetic-kmz-to-gpx.kml.

Report lineExpected
KML file readdoc.kml
Other KML files ignored0
Images ignored1 (files/legend.png)
Placemarks read4
Placemarks with a Point → waypoints2
LineString + gx:Track → tracks2 tracks, 2 segments, 7 track points
Positions with a time4 (2000-01-01 12:00 to 12:03 UTC)
Skipped KML elementsNone

synthetic-gpx-to-kmz.gpx has two waypoints and one track with two segments, every point timed (3 and 2 points).

Report lineExpected
Waypoints → Placemarks with a Point2
Track with two segments → one Placemark1 Placemark holding a gx:MultiTrack of 2 gx:Track elements
Positions written7, of which 5 have a time
Files offered.kmz (one doc.kml) and .kml

What a KMZ is

A KMZ is a zip archive. Google’s KMZ archives guide describes it as a KML file packaged together with the files it refers to, such as icons and overlay images, so they travel as one file. The KML at the top level is normally called doc.kml. This tool reads doc.kml and, if there is none, the first .kml at the top level of the archive. If you got a .kmz from Google Earth, a map you exported or a download link, the coordinates are in that KML, and a GPS app or watch that only reads GPX cannot open the archive.

You can rename a KMZ to .zip and look inside, but you do not need to: drop the KMZ as it is. To see what is in it before converting, use the KML and KMZ viewer.

What survives each conversion

KML writes a coordinate as longitude,latitude[,altitude]; GPX uses separate lat and lon attributes. The tool swaps them for you and copies the digits as written. The same converter is used by KML to GPX, which explains each element in more depth.

KMZ (or KML) to GPX

In the KMZIn the GPXResult
Placemark with a Point<wpt> with name, description and <ele>Kept
LineString<trk> with one <trkseg>Kept; no times, since a LineString has none
gx:Track with <when><trkseg> whose <trkpt> have <time>Kept, times written in UTC
Polygons, modelsNoneSkipped and counted
Styles, icons, folders, ExtendedData, overlays, NetworkLinksNoneSkipped and counted
Images, extra KML files and other files in the archiveNoneIgnored and counted

GPX to KMZ

In the GPXIn the KMZResult
<wpt>Placemark with a PointKept; the waypoint’s time is not carried
<trkseg>, every point has a timeOne gx:Track per segmentKept with times, when “Keep timestamps” is on
<trkseg> otherwiseOne LineString per segmentChanged: times are lost
A track with several segmentsOne Placemark: a gx:MultiTrack (or MultiGeometry) of one line per segmentKept
<rte>LineStringChanged: times are lost
Segments or routes with one pointNoneDropped and reported
Extensions, links, comments, symbols, accuracy fieldsNoneDropped and counted

The KMZ this tool writes has one entry, doc.kml, stored without compression. The KML download is the same content without the zip. The output is the same every time for the same input.

Using the result

We have not tested every app or device with this tool’s output, so open a small file first. The GPX is checked against the GPX 1.1 schema in the site’s tests, and the KMZ is reopened in the KML viewer’s reader with the same placemark and line counts. Want a spreadsheet instead? Convert KML or KMZ to CSV. Choosing between formats? Read how GPX, KML, GeoJSON and CSV compare, or what a GPX file is.

Limits

File privacy

Your file is read, unzipped, converted and saved in this page. The page’s content security policy blocks network connections and it loads no analytics, so it cannot send the file anywhere. The web server sees an ordinary request for the page and its scripts, not your file or its name. Keep your original file: the tool never changes it.

Questions

Is my file uploaded?

No. See file privacy.

Why are my photos missing?

GPX holds points, routes and tracks, not pictures. Images inside the KMZ (icons, overlays, photos) are not converted and the report counts them under “Images ignored”. Your original KMZ still has them.

Can I convert KMZ to CSV?

Yes, with the KML or KMZ to CSV converter, which writes one row per placemark or per vertex.

My KMZ has several layers. Which one is converted?

A KMZ has one KML that is read: doc.kml, or the first .kml at the top level. Folders inside that KML are all converted, but GPX has no folders, so their names are lost and the report counts them. If the layers are separate KML files, only the chosen one is converted and the rest are listed as ignored; unzip the KMZ and convert the others one at a time with KML to GPX.

Why is my polygon missing?

GPX has no area shape, and the tool does not turn an outline into a track. Polygons are skipped and counted in the report.

Does Whereday import KMZ or GPX?

No. Whereday exports GPX, KML and other formats; it does not import GPX or KMZ.

Sources

Record your own routes.

Record routes on your iPhone and export them as GPX, KML, GeoJSON, CSV, JSON or Markdown for any date range.

Download free for iPhone