.TRK

TRK File

GPS Track File
Ask a question
QUICK ANSWER

A TRK file is a plain-text GPS track log - a recorded sequence of latitude, longitude, altitude, and timestamps. It was created by CompeGPS Land (now TwoNav Land) or a Garmin GPS device using the legacy PCX5 format. Open it with GPSBabel (free) or TwoNav Land; for most purposes convert it to GPX first.

Developer: CompeGPS TEAM (primary); Garmin (PCX5 variant) Category: Data Files MIME: application/octet-stream
OPENS ON Windows macOS Linux Web
Related: .PKPASS · .DAT · .JSON · .RIS

On this page

19k+ extensions indexed
Last reviewed Jul 18, 2026

Not sure what your file is?

Drop any file into our identifier - we read just the first bytes to name the format.

Identify a file

What is the TRK file format?

The .trk file format was developed by CompeGPS Team and falls under the category of a data file stored in text formatting. It is used by the CompeGPS Land program (now TwoNav Land) that interfaces with GPS devices. The file contains a series of track points - each recording longitude, latitude, altitude, date/time, and speed - laid onto a map to help with the planning of routes and navigation on GPS devices.

A second, older dialect of .trk originates from Garmin's PCX5 software; the two formats use different field layouts and headers and are not interchangeable without conversion. The open-standard .gpx (GPS Exchange Format, XML-based) has largely replaced .trk for sharing GPS tracks between applications. GPSBabel supports both .trk dialects and can convert them to GPX, .kml, and many other formats.

Various programs on Linux, Windows, and Mac can be used to open and read .trk files.

Security & safety

RISK: LOW

Plain text GPS data files pose no security risk. Privacy concern: a track file reveals precise location history including timestamps. Do not share .trk files from personal routes without trimming location data near home or sensitive areas.

Format details

in a nutshell
FULL NAMEGPS Track Fileaka CompeGPS Track File, Garmin PCX5 Track File
DEVELOPERCompeGPS TEAM (primary); Garmin (PCX5 variant)since mid-1990s (Garmin PCX5 era); CompeGPS variant circa early 2000s
CATEGORYData Files
MIME TYPEapplication/octet-stream
TYPEGPS track data (text, comma-separated fields)
This extension is also used by…
  • Garmin IMG map TRK subfile - A binary subfile within Garmin .img map files storing road/trail geometry; unrelated to the text GPS track log format.
  • Various game/3D engine track formats - Several games and 3D applications use .trk for racing tracks or animation tracks; context-dependent and not related to GPS.

Programs that open TRK files

Windows3 apps
GPSBabel Open-source Use GPSBabel GUI or CLI to open, view, and convert .trk files. Select 'compegps' or 'garmin_pcx5' as input format.
TwoNav Land (formerly CompeGPS Land) Freemium Open the .trk file natively; view on map, edit, and export to other formats.
Google Earth Pro Free Google Earth cannot open .trk directly - convert to KML/GPX first using GPSBabel, then import.
macOS1 app
GPSBabel Open-source Run GPSBabel to convert .trk to GPX, then open the GPX in any GPS app.
Linux1 app
GPSBabel Open-source gpsbabel -i compegps -f track.trk -o gpx -F output.gpx
Web1 app
GPS Visualizer Free Upload the .trk file to view it on a map or convert to GPX/KML online.

Technical details

deep spec
Format typePlain text, comma-separated values (CompeGPS/TwoNav dialect) or space-delimited (Garmin PCX5 dialect)
Coordinate systemWGS84 geographic coordinates (longitude/latitude); projection configurable in CompeGPS header block
Track point fieldsLongitude, latitude, altitude, date/time stamp, and speed recorded per track point
Header metadataTrack name, display color, coordinate system, projection, and datum (CompeGPS variant)
DialectsCompeGPS/TwoNav and Garmin PCX5 - incompatible field orders and headers; conversion required between them
Modern replacementGPX (GPS Exchange Format) XML standard is the current interoperable open format for GPS tracks
Conversion toolGPSBabel converts both `.trk` dialects to GPX, KML, and dozens of other GPS formats
EncodingASCII / Latin-1 plain text
Typical file size1 KB - 2 MB depending on the number of recorded track points
Native softwareTwoNav Land (formerly CompeGPS Land) is the primary editor; Google Earth Pro can display converted files
Unrelated binary variantThe Garmin IMG map subfile format also uses the `.trk` extension but is entirely binary and unrelated
CompressionNone - track points stored as uncompressed delimited text
Releasedmid-1990s (Garmin PCX5 era); CompeGPS variant circa early 2000s

TRK conversions

Community Q&A

asked by users
Ask a quick question
Get help from people who work with TRK files. Be specific - include your system and software version.
No account needed · answers usually within a day

No questions yet - be the first to ask about TRK files.

Frequently asked questions

How do I open a .trk file?
Use GPSBabel (free, all platforms) to convert it to GPX, then open the GPX in Google Earth, Garmin Connect, Strava or OsmAnd. TwoNav Land can also open .trk files natively.
How do I convert a .trk file to GPX?
In GPSBabel: select compegps or garmin_pcx5 as the input format, .trk as input, GPX as output. Command line: 'gpsbabel -i compegps -f track.trk -o gpx -F output.gpx'
What created my .trk file?
Either CompeGPS/TwoNav Land software or a Garmin GPS device using the legacy PCX5 format. Both store GPS track logs as .trk text files.
Can I open a .trk file in Google Earth?
Not directly. Convert to KML or GPX first using GPSBabel or GPS Visualizer, then import into Google Earth Pro.

References

1GPSBabel - supported formats including compegps/garmin_pcx5www.gpsbabel.org
2Blue Marble Geo - Garmin TRK (PCX5) format descriptionwww.bluemarblegeo.com

Keep exploring

across the database

Top extensions this week

1.AQQAQQ Instant Messenger File
2.CRDOWNLOADChrome Partial Download File
3.PARTPartial Download File
4.BINCD/DVD Disc Image (BIN/CUE)
5.RPMSGRestricted Permission Message
6.MDMarkdown Document
7.NOMEDIAAndroid No-Media Marker File
8.EXEWindows Executable (Portable Executable)
9.PRO6XProPresenter 6 Bundle File
10.PRDXSoftMaker Presentations Document

Related extensions

.PKPASSApple Wallet Pass (formerly Passbook)
.DATProgram Data File (generic)
.JSONJavaScript Object Notation file
.RISResearch Information Systems citation file
.OFXOpen Financial Exchange
.CSVComma-Separated Values

Free file tools

An in-browser file identifier and image converter - everything runs on your device.

Open the toolbox

Browse file extensions A-Z