# Convert GPX to KML for Google Earth, one line per track

> Markdown version of https://stella.sh/how/files-folders/convert-gpx-to-kml for agents and LLMs.
> Turn a folder of GPX tracks into one KML for Google Earth, each track its own line named by its date: Google Earth Pro, GPSBabel, or Stella (stella.sh).

Google Earth Pro (free) opens GPX files itself: open each one, drag the tracks into one folder under Places, rename them, then right-click the folder and Save Place As KML. GPSBabel converts GPX to KML in one step, and converter sites do one file at a time. Stella (stella.sh) turns a whole folder into one KML on your computer, one line per track named by the date inside the file, and checks the data as it goes.

- Checked: 14 November 2026
- Stella does it on: Windows, Mac, Linux

## Stella doing it

Recorded 13 November 2026 on Linux (Omarchy) with Claude Code with Opus, on a Claude plan.
Result: One KML in about 30 seconds. Checked afterwards against an answer key written before the run: 8 separate lines, one per track, each keeping all its points with coordinates in the right order, each labelled with its date, and the GPX files unchanged. The eight tracks are synthetic test files made for this run, generated at a walking pace, so Stella's remark that they don't look like bike rides is it checking the data and flagging an oddity, not a comment on anyone's real rides. The run isn't sped up; a long idle stretch after the answer is cut.

Video (45 s): https://stella.sh/media/proofs/files-folders/convert-gpx-to-kml/proof.mp4

Transcript:

- 0:00 Stella on a Linux computer. Eight GPX tracks with export-style names are in Downloads/Rides.
- 0:02 The prompt: one KML for Google Earth, each ride its own line named by its date.
- 0:30 Done: Rides.kml with 8 dated lines, plus a note that the speeds look like walking, not cycling.

What Stella does:

1. Reads the 8 GPX files in Downloads/Rides, whose export-style names (`Morning_Ride_48213977.gpx`) don't say when they were recorded
2. Takes each track's date from the times inside the file, whichever of two GPX layouts it uses
3. Writes `Rides.kml` next to the folder: 8 separate lines in date order, each named like 2026-04-05, with every point kept
4. Adds the original file name, distance and time to each line's pop-up, and timestamps so Google Earth's time slider can show them one by one
5. Checks the numbers and flags something odd: the tracks average about 4.5 km/h, walking pace rather than cycling, and four were tagged as hiking by the recording device

## The prompt to paste

```text
I have 8 bike rides as GPX files in the Rides folder in Downloads. Make one KML file I can open in Google Earth, with each ride as its own line named by its date.
```

## Convert them yourself

1. **Install Google Earth Pro.** Google Earth Pro for Mac and Windows is free and reads GPX directly. The web version of Google Earth imports KML files but not a folder of GPX.
2. **Open each GPX.** Choose File, Open, set the file type to GPS, and pick a GPX. In the import box choose to create KML line strings for tracks. Repeat for each file.
3. **Gather and rename.** In the Places panel, right-click My Places, Add, Folder. Drag each imported track into it, then right-click each one, Properties, and give it the ride's date as its name.
4. **Save as one KML.** Right-click the folder, choose Save Place As, and pick KML (or KMZ, which is smaller). That single file opens anywhere Google Earth runs.
5. **Or use GPSBabel.** In [GPSBabel](https://www.gpsbabel.org/), add the GPX files as input, choose Google Earth (Keyhole) Markup Language as output, and convert. Track names come from the GPX files, so you may still need to rename them by date.

## Where Stella stops

- Google My Maps limits how much you can import per layer. For a big archive, Google Earth Pro or a KMZ works better.
- Stella kept full detail here. If you need a smaller file, ask and it simplifies the lines.
- It flagged that the tracks looked like walks but still made the file as asked. Check the remarks it adds; they come from the data, not from guesswork about you.
- What Stella reads while working, such as dates, distances and file names, goes to the AI model you use in Stella. The conversion runs on your computer.
- Recorded on Linux, where Stella used only Python, built in on Mac and Linux. On Windows it may install Python first, which wasn't recorded.

## Questions

**What's the difference between GPX and KML?**
GPX is what GPS watches and apps record: points with times. KML is Google Earth's format for drawing lines, places and labels. Converting keeps the route and lets you style and name it.

**Can I open a GPX in Google Maps?**
Not directly. Google My Maps imports KML (and GPX via some routes), then shows it on a map you can share. Convert to KML first for the most reliable import.

**Can it go back from KML to GPX?**
Yes, ask for GPX. For several recordings of one trip, see [combine GPX files into one track](https://stella.sh/how/files-folders/combine-gpx-files).

**Will it upload my tracks anywhere?**
No. The KML is written on your computer; opening it in Google Earth is up to you. Before sharing photos from the same trips, [remove their location](https://stella.sh/how/photos-files/remove-location-from-photos).

**Is Stella free for this?**
Yes. Free with the ChatGPT or Claude plan you already have. Sign in with your ChatGPT plan, or use your Claude plan through Claude Code, and this task costs nothing extra. New accounts also get a small free trial of Stella’s own models.

**Can I control what Stella changes on my computer?**
Yes. Stella works on Windows, Mac and Linux with your own files and shows each step in the chat, so you can watch it and stop it at any point. Tell it what it may not do, as the prompts on these pages do (“don't delete anything without asking”). In the Downloads recording it deleted nothing until it was told to go ahead. It also refuses commands that would wipe a whole disk, your home folder or system folders.

Sources: [Google Earth Help: Import GPS data](https://support.google.com/earth/answer/148095), [GPSBabel](https://www.gpsbabel.org/).

## Related problems

- [Combine GPX files into one track in the right order](https://stella.sh/how/files-folders/combine-gpx-files.md)
- [Remove location from photos before you post them](https://stella.sh/how/photos-files/remove-location-from-photos.md)
- [Zip file too large to email? Split it into pieces that each open](https://stella.sh/how/files-folders/zip-file-too-large-to-email.md)
- [Extract multiple zip files at once, each into its own folder](https://stella.sh/how/files-folders/extract-multiple-zip-files-at-once.md)
- [Find files containing text, whatever type of file they are](https://stella.sh/how/files-folders/find-files-containing-text.md)
- [Move all files from subfolders into one folder without losing any](https://stella.sh/how/files-folders/move-files-from-subfolders-into-one-folder.md)

Get Stella: https://stella.sh/download. Free with the ChatGPT or Claude plan you already have.
