Image for How to Convert Google Timeline JSON to GPX
Photo by Shutter Speed on Unsplash

How to Convert Google Timeline JSON to GPX

A practical, data-driven guide to export google timeline to gpx from on-device data and post-process conversions.

Google Maps Timeline is a powerful chronicle of where you’ve been, when, and how you traveled. If you’re a map analyst, historian, or traveler who wants to reuse that data in GPX-compatible tools, you’ll want a reliable path from Timeline data to GPX. In 2024, Google shifted Timeline data from cloud-centric storage to on-device storage, meaning your location history largely resides on your phone. The web Timeline UI was retired for standard users, which makes local exports and offline processing increasingly essential. This guide walks you through a practical, step-by-step approach to export google timeline to gpx by first obtaining the Timeline data on your device, then converting that data with general-purpose tools. You’ll learn what to export, how to extract a usable timeline JSON, and how to transform that data into GPX-compatible routes for GIS software, fitness apps, or custom analysis. The goal is to provide a dependable workflow that emphasizes privacy, local processing, and reproducible steps. By the end, you’ll have a GPX-ready representation of your travel history, along with best practices to validate accuracy and preserve data integrity. If you’re unsure about the latest menu paths or device-specific nuances, I’ll call out exact steps and provide exact dates as anchors to avoid ambiguity. For context, keep in mind that on-device export paths and Takeout behavior have evolved since 2024, which informs how you approach this conversion today. (support.google.com)

Prerequisites & Setup

Before you start converting your Google Maps Timeline data to GPX, gather the essentials and align expectations. This section covers what you need, what you should know, and how to prepare your workspace so the subsequent steps go smoothly. We’ll anchor practical steps to current realities about Timeline data storage and export options, with references so you can verify paths and terminology.

What you'll need

  • A smartphone with Google Maps Timeline data (Android or iPhone). On-device Timeline data is the practical source for export in the current setup, since 2024 Google moved timeline data storage to the phone and the web version is no longer the primary export channel for most users. (9to5google.com)
  • Access to the Google Maps app (Android or iOS) for the export flow. Android users typically find the export option under the system Location settings, while iOS users export via Google Maps itself. This on-device export yields a Timeline JSON file that you can then convert to GPX using external tools. (android.stackexchange.com)
  • A local workspace for data processing (your computer or a secure workstation). Since the conversion from Timeline JSON to GPX is not a built-in feature of Google Maps Timeline Visualizer, you’ll rely on general-purpose tools like Python, a GIS program (QGIS, ArcGIS), or an offline converter script. This keeps data processing offline and private, aligning with the project’s privacy-first approach. The project’s own workflow emphasizes in-browser visualization of Timeline JSON, but GPX export requires external tooling.

Security, privacy, and data handling

  • All processing should occur locally on your device or your own computer. The Timeline JSON you export contains your location history, so minimizing exposure is wise. The on-device export path is designed to keep data off cloud servers unless you explicitly back it up. For context, the newer data model emphasizes local storage and encrypted backups, with export options available on-device. (support.google.com)
  • If you plan to share GPX files, sanitize sensitive details (exact home or work locations, private venues) or consider anonymizing segments. Data integrity is important when you later analyze travel patterns or derive business insights.

Tools and resources to bookmark

  • General-purpose JSON-to-GPX conversion: you’ll typically implement a lightweight script or use a GIS workflow to map timeline events to GPX waypoints and tracks.
  • A reliable test dataset: if you want to validate your conversion process, try a short sample of Timeline JSON with a known travel pattern to confirm GPX output matches expected routes.
  • Documentation references: it’s useful to have the official (and neutral) background on how Timeline export workflows have evolved post-2024, including the on-device export option and the de-emphasized cloud Takeout path. (support.google.com)

Note on the data source
The data you export from your device is the critical input for GPX conversion. Because Google moved Timeline data storage to the device in 2024, ensuring you’re exporting from the right source (Timeline JSON on-device) helps avoid gaps or mismatches in your GPX track. If you’re unsure where to locate the export, consult device-specific guides or the Google Maps Help pages described above. (9to5google.com)

Step-by-step prerequisites alignment

  • Confirm your device supports Timeline export. Android devices expose an export feature within the Location settings; iOS devices expose a data export pathway through the Google Maps app. If you don’t see export options, check for app updates or consult platform-specific help articles. (android.stackexchange.com)
  • Prepare a clean workspace: create a folder named Timeline_GPXDraft on your computer to store Timeline.json, conversion scripts, and the resulting GPX files. This naming helps you maintain version control and backtracking if you need to adjust the conversion logic.

Pro tip
Set up a simple folder structure in your project: Timeline/Timeline.json, Converters/json_to_gpx.py, Output/YourTimeline.gpx. This reduces confusion when you scale up to longer histories. (support.google.com)

Step-by-Step Instructions

Density of OpenStreetMap GPS traces across Europe
Density of OpenStreetMap GPS traces across Europe

Image: OpenStreetMap GPS trace density by Eric Fischer, CC BY 2.0, via Wikimedia Commons.

This is the core tutorial. It walks you from obtaining your Timeline data on-device to producing GPX-ready data for use in GIS or GPS applications. Each step describes the action, explains why it matters, shows what success looks like, and calls out common pitfalls to avoid. Visual cues and optional screenshots are noted where they can help you confirm you’re on the right track.

Step-by-Step Instructions
Step-by-Step Instructions

Photo by OpenClassActions on Unsplash

Step 1: Export your Timeline data from the phone

What to do

  • Android: Open Settings > Location > Timeline > Export Timeline data, and save the resulting JSON file to your Downloads folder or a chosen directory.
  • iPhone: In Google Maps, tap your profile picture > Your Timeline > Settings and privacy > Export Timeline data, then save the Timeline JSON locally.
    Why it matters
  • This step yields Timeline.json (the on-device export format) that contains your location history data. Since 2024, Google’s approach has shifted to a local data model on devices, with the web Timeline UI largely deprecated for standard users; exporting from the phone ensures you’re capturing the data that Google still generates for you in the on-device store. (9to5google.com)
    Expected outcome
  • You have a Timeline.json file saved on your device or computer, ready for post-processing. The file name may vary slightly by language and device, but the content will reflect your local history.
    Common pitfalls to avoid
  • Exporting an encrypted or incomplete backup: ensure you choose a direct export path and not a cloud backup that might not contain the full timeline data. If you see an “encrypted backups” note, follow the on-device export flow instead of Takeout. (support.google.com)
  • Confusion about data scope: Timeline.json is on-device. Takeout archives may not include the most recent Timeline data for migrated accounts. If you’re looking for the latest, rely on the on-device export flow. (support.google.com)

Visual confirmation
After exporting, verify that the file size is non-trivial and that the JSON contains a sequence of location events with timestamps. A quick JSON viewer or text editor should show arrays of Timeline objects before you proceed to conversion.

Step 2: Locate your Timeline JSON file

What to do

  • Find the exported Timeline.json on your device or computer. On Android, the export typically lands in the Downloads folder or a user-specified directory; on iOS, it may land in your Files app.
    Why it matters
  • Knowing the exact file location avoids accidental omissions during post-processing and helps you organize your GPX workflow, especially when handling multi-file exports for long histories.
    Expected outcome
  • A clear file path is ready for your next step (parsing/parsing logic or a simple convert script).
    Common pitfalls to avoid
  • Losing the file path after moving devices or clearing storage; keep a record of the export destination.
  • Mixing multiple Timeline.json exports from different dates; keep a single, consistent source for a clean GPX track.

A quick check
Open the folder where Timeline.json was saved and confirm the file name matches Timeline.json or Timeline.*.json. If not, locate the most recent export and rename to Timeline.json for consistency in your workflow.

Step 3: Understand the Timeline JSON structure

What to do

  • Inspect the JSON to understand the key elements you’ll map to GPX: timestamps, coordinates, and possibly place names.
    Why it matters
  • GPX requires track points with timestamps (and sometimes elevation). Understanding the data you have helps you design a robust conversion that preserves temporal order and route geometry.
    Expected outcome
  • A mental model (or a written schema) of how Timeline events map to GPX waypoints and tracks.
    Common pitfalls to avoid
  • Assuming every event has lat/long coordinates; some entries may be place-based or zone-based. You’ll want to filter for concrete coordinates when building GPX tracks.
  • Overlooking time zones; ensure timestamps are interpreted consistently in GPX (UTC is common).

Practical note
If you’re unsure about a field in the JSON (for example, whether an entry has precise coordinates or a semantic label), review a small sample with a JSON viewer and compare it to a GPX structure to plan the mapping.

Step 4: Choose a GPX conversion method

What to do

  • Decide how you’ll turn Timeline.json into GPX. Options include:
    • A lightweight Python script that reads Timeline events, filters for mappable points, and writes GPX with proper XML tags.
    • A GIS workflow (e.g., QGIS) that imports JSON, creates point/line features, and exports GPX.
    • A dedicated converter tool (standalone or library-based) that accepts Timeline-like JSON and outputs GPX.
      Why it matters
  • The conversion method affects accuracy, reproducibility, and future automation. A well-structured approach minimizes data loss and ensures time-stamped coordinates align with GPX conventions.
    Expected outcome
  • A plan and a chosen toolchain for converting Timeline.json into GPX.
    Common pitfalls to avoid
  • Using a converter that doesn’t preserve timestamps or export a valid GPX schema. Validate the generated GPX with a GPX viewer or GIS software.
  • Assuming all timeline entries translate to GPX points; sometimes you’ll want to aggregate continuous movements into a single track segment to reduce noise.

Quick guidance
A common approach is to export Timeline.json to a Python or GIS-based workflow that specifically maps location events with their timestamps to GPX track points. You can then refine by filtering out stationary periods to produce cleaner routes.

Step 5: Convert JSON to GPX with a general-purpose tool

What to do

  • Implement the actual conversion using your chosen toolchain. If you’re using Python, you’ll parse Timeline.json, extract (lat, lon, time) triples, and write them to a GPX file with proper XML structure. If you’re using GIS, you’ll import the coordinates as a polyline track and export GPX from the project.
    Why it matters
  • This is the pivotal step where data becomes interoperable with GPX-enabled apps and GIS workflows. A careful mapping of coordinates and timestamps ensures your routes reproduce accurately in GPX consumers.
    Expected outcome
  • A GPX file (or set of GPX files) representing your movement history, ready for import into GPX viewers, GIS software, or fitness apps.
    Common pitfalls to avoid
  • Incorrect time formats or time zone offsets that corrupt the timeline when GPX readers parse timestamps.
  • Missing altitude data if your GPX consumer expects elevation; you can leave elevation blank or derive it if your data includes it.
  • Large GPX files with jittered or noisy points; consider debouncing or filtering sequential points with minimal displacement to improve readability.

Optional note
If your Timeline.json uses newer formats like Timeline.json, you may need a small pre-processing step to normalize fields before GPX conversion. Some developers maintain separate scripts for “old” vs. “new” timeline formats.

Step 6: Validate GPX data

What to do

  • Open the GPX in a viewer (QGIS, GPSBabel, Garmin BaseCamp, or an online GPX viewer) and inspect:
    • Track continuity (timestamps strictly increasing)
    • Spatial coherence (points create realistic routes without errant jumps)
    • Completeness (you’ve captured the key trips you intended)
      Why it matters
  • Validation ensures that your GPX is usable for downstream applications and won’t produce confusing results in GIS analyses or fitness logs.
    Expected outcome
  • A clean, validated GPX file with a readable track that preserves the intent of your Timeline data.
    Common pitfalls to avoid
  • Overlooking timestamps that are out of order due to time zone conversions.
  • Leaving in stray points that represent stationary periods or GPS drift; consider a simple filter to drop points with minimal movement.

Validation tip
Compare the GPX track’s route with the original Timeline path in a map view to confirm alignment. If you notice discrepancies, re-check the mapping step (Step 5) and re-run the conversion with adjusted filters.

Step 7: Import into GPX-enabled apps or GIS tools

What to do

  • Import the GPX into your preferred platform:
    • GIS: QGIS, ArcGIS, or another GIS suite for spatial analysis and map visualization.
    • GPS/fitness apps: Import GPX to track workouts or travel logs.
    • Custom analysis: Load GPX into your own analysis pipeline for visualization or statistics.
      Why it matters
  • The final step ensures your hard-earned data translates into actionable insights, reproducible maps, and shareable travel logs.
    Expected outcome
  • A usable GPX file within your chosen ecosystem, ready for further analysis, visualization, or archival storage.
    Common pitfalls to avoid
  • Incompatibilities between GPX schemas used by different tools; you may need to adjust track naming, metadata, or waypoint formatting to match the target application.
  • File naming and encoding issues; use UTF-8 and consistent filenames to avoid import errors.

Real-world use
Many GIS users like to attach metadata to GPX tracks (date ranges, source, processing notes) to maintain provenance. Keeping a small metadata file alongside GPX helps you reproduce the workflow later.

Step 8: Optional automation and batched histories

What to do

  • If you routinely export Timeline data, consider building an automated workflow:
    • Schedule on-device exports (Android) or periodic Google Maps exports (iOS) to Timeline.json.
    • Run your Python or GIS-based converter as a batch process.
    • Schedule validation and import steps to keep GPX up to date.
      Why it matters
  • Automation saves time for ongoing data continuity, reduces manual steps, and enables nightly or weekly GPX updates for travel dashboards or archival records.
    Expected outcome
  • A repeatable, automated pipeline from Timeline data to GPX, with minimal manual intervention.
    Common pitfalls to avoid
  • Over-automation without validation checkpoints; ensure the pipeline includes integrity checks and alerts if parsing fails.
  • Version drift when data formats change; maintain versioned converter scripts and test against a known Timeline.json sample.

Automation checklist
Define input/output folders, log steps, and error handling. Consider using a containerized environment or a virtual environment to ensure reproducibility across machines.

Troubleshooting & Tips

Even with a careful plan, you may run into hiccups. This section collects the most common issues and practical remedies, so you can recover quickly without redoing large parts of the workflow. Each subsection offers practical tips, pitfalls to avoid, and quick checks to keep you moving.

Common export issues and how to fix them

  • Problem: Cannot locate Timeline.json after export.
    • Fix: Revisit the device export path and re-run the export step to ensure the file is created. On Android, verify that the export option was used from the system Location settings; on iOS, verify that the export path was completed via Google Maps. If needed, check recent files in the Downloads folder or Files app. (android.stackexchange.com)
  • Problem: Timeline.json appears empty or lacks coordinates.
    • Fix: Some entries may be place-based without precise coordinates. Your GPX conversion should focus on entries containing coordinates and may require filtering or interpolation for path construction. Review the JSON sample to identify coordinate-bearing objects.
  • Problem: Takeout exports show “Encrypted Backups” instead of timeline data.
    • Fix: Use the on-device export flow to get Timeline.json, as Google Takeout may not include the most recent timeline data for migrated accounts. This is a known nuance in the post-2024 data model. (support.google.com)

GPX-specific pitfalls and how to avoid them

  • Pitfall: Too many points create an unwieldy GPX file.
    • Tip: Consider filtering to keep only points with meaningful movement (e.g., minimum distance between consecutive points) and re-evaluate intervals to balance fidelity with file size.
  • Pitfall: Time zone discrepancies distort the sequence.
    • Tip: Normalize timestamps to a single time standard (UTC) during the conversion step to ensure chronologies align across viewers.
  • Pitfall: Elevation data inconsistency.
    • Tip: If your source Timeline data lacks reliable elevation, you can leave elevation out of GPX or populate with a neutral value; many GPX readers ignore missing elevation and still render tracks accurately.

Data quality and privacy considerations

  • Data integrity is paramount; always verify that the GPX corresponds to the actual travel and avoids overstating single segments or duplicating points.
  • Privacy-first posture is essential when sharing GPX files. Mask or redact sensitive segments (home/work locations) if you intend to publish or distribute the data.
  • The project emphasizes privacy by design: the Timeline Visualizer runs in the browser, and local data is not uploaded by default. When you perform on-device exports and offline conversions, you further preserve control over your data.

Quick privacy reminder
Treat your Timeline.json as sensitive personal data; perform transformation offline and only share GPX files that have been scrubbed of sensitive locations.

Next Steps

With your GPX ready and validated, you have several productive avenues to explore. This section outlines practical next steps and related resources to expand your capabilities beyond a single export.

Next Steps
Next Steps

Photo by BoliviaInteligente on Unsplash

Advanced GPX workflows

  • Data fusion: Combine GPX tracks with additional GIS layers (roads, topography) to improve context and analysis.
  • Temporal analytics: Use timestamp data to analyze travel speed, dwell times, and trip segmentation; pair with external data sources for richer insights.
  • Visualization enhancements: Import GPX into more sophisticated visualization environments to produce layered maps, heatmaps, or journey summaries.
  • If you need different output formats (KML, CSV, or GeoJSON), you can apply format-specific conversion steps to the same Timeline.json source. General-purpose data processing tooling supports multi-format export, enabling downstream compatibility with diverse platforms.
  • For those exploring open-source tooling, there are community-developed utilities designed to coordinate on-device Timeline data with various export targets. These can help unify data across versions and formats, including GPX.

Important caveat
The project’s emphasis is on privacy-preserving visualization and local processing. While GPX export is feasible through general-purpose tools, the primary visualizer remains a browser-based, in-browser experience that maps Timeline JSON to a map without uploading your data. Use the Visualizer to sanity-check your JSON before and after conversion to GPX.

  • Stay informed about updates to Timeline export and data handling by following official Google Maps Help articles and the project’s announcements. While the web Timeline UI has evolved, the on-device export pathway remains central for obtaining Timeline data. (support.google.com)
  • For developers and power users, community tools exist to help normalize Timeline data formats across versions, which can smooth future updates to your GPX workflow. When you leverage these tools, ensure you adhere to privacy and data protection best practices.

Closing

Exporting Google Maps Timeline data to GPX is a multi-step process that combines on-device exports with general-purpose data processing. By starting with a careful, privacy-conscious export from your phone, you lay a solid foundation for generating accurate GPX tracks that you can analyze, visualize, or share on your terms. The key is to treat Timeline.json as the source of truth, map its coordinates and timestamps to GPX in a controlled environment, and validate every step to preserve data fidelity. If you’re ready to explore your past journeys in GPX, begin with an on-device export, then move through conversion, validation, and import into your preferred platform. As you continue, you’ll gain a reproducible workflow that supports deeper insights into travel patterns, location history, and spatial analysis.

Note: The project and the guidance here emphasize privacy, local processing, and a transparent workflow. If you’d like, I can tailor the Python or GIS steps to your preferred tools (e.g., PyGPS, QGIS), or draft a minimal script outline you can adapt with your Timeline.json sample. The key is to ensure your final GPX aligns with your target applications and preserves the integrity of your travel history.

Author

Kenzo Tanaka

2026/05/19

Kenzo Tanaka writes about maps, mapping tools and visualizing personal location history.

Share this article