Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I need to convert a lot of garmin GDB files to GPX in order to convert it to another vector format. Is there any tools available can do a batch convert from garmin GDB files to GPX? Using MapSource allow only one file at a time.

Best Regards,

share|improve this question
up vote 6 down vote accepted

You may use GPSBabel.

garmin GDB format is supported (see this page). Something like that should work:

gpsbabel -i gdb -f file.gdb -o gpx

A short batch file to loop through and convert all files in a directory:

for %%f in (x:\garmin_data\*.gdb) do (
   gpsbabel -i gdb -f "%%f" -o gpx -F "x:\gpx_data\%%~nf.gpx"

The first -f is the input file and the second is the output. See here about the %%~ syntax.

share|improve this answer
Thank you, I tried and it's a good app, unfortunately the output is in one single file, I'm hoping each gdb get converted to each gpx. – Zery Jan 4 '12 at 15:40
@Zery - Sounds like you need to loop through your files one by one and call gpsbabel on each one as you go. – Chad Cooper Jan 9 '12 at 16:19
@Chad - thank you, why don't I think of that, in fact I can even do it from inside my MapInfo using MapBasic and then just look for another source how to convert gpx to mapinfo tab programatically. Thank you. – Zery Jan 9 '12 at 23:43
I added an example batch file to loop through files in a directory – matt wilkie Feb 22 '12 at 17:51

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.