Text to GEDCOM Using my Ahnen2GED

My Ahnentafel to GEDCOM converter, Ahnen2GED, apparently has more uses than I realized. It was initially written to convert the output of DNArboretum (a tool to create ahnentafels from Family Tree DNA trees) to a GEDCOM, but many people are using it to convert other text files as well. So I have enhanced Ahnen2GED to accept any date format that ends with a space followed by the four digit year, so for example 10 jan 1920. I also fixed the known problem where it did not work properly if the lines for the grandparents were not there.

The URL for my Ahnentafel to GEDCOM converter is:

Below is the documentation of the format Ahen2GED expects. Hopefully this will help you create text files that will easily convert to GEDCOMs using my tool. Especially DNAgedcom.com users!


Look at the image above of the format Ahnen2GED expects as output from DNArboretum. Each line must start with the ahnentafel number followed by a period, a space, or a tab. Then a space and the person’s name. Then the word “born:” with a colon followed by a space then the birth location which can include commas or be blank. Finally a comma followed by the date the person was born on which can be either just the year, or else any other date format as long as it ends with a space and then the four digit year with no commas. Thus legal dates are 1 dec 2004 or abt. 1909 but not Apr 19, 2004 (has a comma) or 12/12/1914 (no space before the year). Finally the word “died:” followed by the place and date of death where the same formatting rules apply as for born.

My informant told me that he uses the DNAgedcom.com client tool (a paid feature under the subscribers tab) to download tree information to a spreadsheet from his matches at Ancestry.com DNA. He then massages the file, which has the ahnentafel numbers already, into a text file for my tool so that he can use the GEDCOM compare tool, also at DNAgedcom. He was curious if I could add the ability to my tool to do that massaging. “Probably,” I said. “I would have to see some samples.”

Are there other users out there who want this capability? How about more date formats like 02-02-1899 or 1/6/1976? If so pass the hat, once I have at least six glasses of wine (click button in right hand column), I will write it.

4 thoughts on “Text to GEDCOM Using my Ahnen2GED

    • Rob has plans to include more tree gathering at DNAgedcom … I intend to update my tool to acccept more formats after Jamboree. Currently you have to massage your text file to look like the one above.

      What exactly do you mean by the DNA client files? the a_ files from the GWorks client? No plans, since people aren’t identified as to where in the tree. However I do plan to be able to use the text cut and paste from the print at ancestry (see http://blog.kittycooper.com/2017/05/getting-a-simple-text-pedigree-from-ancestry-com/ )

      Here is how I use my tool with the wiki compact tree …
      When you see wiki in the tier1 one to many at GEDmatch and click on it to get to a tree
      Select all and paste into a text editor

      A little massaging is required

      1. remove every occurance of “+-”

      2. replace “ancestors descendants” with “born:

      3. replace ” – ” with ” died: ” (be sure to include space after the dash

      4. remove any excess txt at top or bottom and make sure person 1 has “ancestors” removed

      5. do a quick visual check and fix any remaining +- or other issues

      6. if any born and died entries have places as well as dates the dates have to be moved to after the place, preceeded with a comma. This last one can be time consuming so I hope to automate it soon.

Leave a Reply

Your email address will not be published. Required fields are marked *