How to Join GPX Files

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.

...
You may want to join multiple GPX files from a single trip in order to make them practical to view.

Step

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

Step

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

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

Step

Select "Copy" from the "Edit" menu.

Step

Open the second GPX file in your text editor.

Step

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

Step

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

Step

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.