How to Join GPX Files

By Lenny Drew

GPX is the file type for the GPS Exchange Format, the format used for GPS data logging. Most GPS units will output data to either the GPX file format or a similar file format that can easily be converted to GPX. When working with GPX files, you may want to join two files to make one unified GPS log. Basic knowledge of GPX tags is helpful, though not essential, for joining two files. Joining GPX files can be done in a basic text editor. Joining is different from merging, because merging removes duplicate entries and joining does not.

Step 1

Open your first GPX file in a text editor such as Notepad in Windows or TextEdit in Mac OS X.

Step 2

Identify the data between the opening tag, "," and the closing tag, "." The opening tag may be several lines long, containing information about which device or software created it. Therefore, the opening tag may appear first as "." The closing tag will be at the end of the document and simply says "." Ignore the quote marks.

Step 3

Highlight the data between the "" and "" tags with your cursor.

Step 4

Select "Copy" from the "Edit" menu.

Step 5

Open the second GPX file in your text editor.

Step 6

Identify the closing tag, "," and click your cursor in the spot just before the "<."

Step 7

Select "Paste" from the "Edit" menu. The data you selected from the first file should now be part of the second file.

Step 8

Perform a "Save As" operation for your second file and name the file to reflect that it contains two joined files. "GPX1GPX2Joined.gpx" could be an appropriate file name.

Tips & Warnings

  • Practice joining GPX files using sample data in the resources section.
  • When saving your joined file, be sure not to choose "Save," or you may lose your original file.
  • Always keep backups of your files.

References & Resources