what is the format of a gedcom file

GEDCOM File Format Explained

By Sarah Williams
AD

A GEDCOM file, an acronym for GEnealogical Data COMmunication, is a standard file format used to store and exchange genealogical data. Understanding the format of a GEDCOM file is crucial for genealogists to share, manage, and preservation of their family history data. So, what exactly is the format of a GEDCOM file? Let's delve into its structure, tags, and data types.

GEDCOM files are plain text files with a specific set of rules governing their structure and content. They consist of lines of text, each representing a single fact or event, such as a birth, marriage, or death. These lines are separated into four-space indentation levels, indicating the level of hierarchy in the data. The top-level records are called 'header' and 'trailer,' with individual records for people, families, and sources.

GEDCOM File Structure

The GEDCOM file structure is hierarchical, with records containing sub-records, much like a family tree. The root record is the 'head' record, which contains the headline and the entire genealogical information. Below it, 'INDI' records represent individual people, and 'FAM' records represent families. Each record contains a unique identifier (/set in first line) and subsequent lines detailing facts about the individual or family.

AD
GEDCOM Files: Sharing, Merging, Exporting and More - Family Tree Magazine
GEDCOM Files: Sharing, Merging, Exporting and More - Family Tree Magazine
GEDCOM File (What is It & How to Use This Genealogy File)
GEDCOM File (What is It & How to Use This Genealogy File)
GEDCOM File (What is It & How to Use This Genealogy File)
GEDCOM File (What is It & How to Use This Genealogy File)

For instance, an 'INDI' record might look like this:

0 @I1@ INDI
1 NAME John /Smith/
1 BIRT 1800
1 DEAT A
2 PLAC cemetery, town, state
1 FAMS @F1@

GEDCOM Tags

GEDCOM uses a specific set of tags to define the data type, indication, or label within a record. These tags follow the format of a letter followed by one or more numbers. Some common tags include:

A Mild Scrub for Your GEDCOM File
A Mild Scrub for Your GEDCOM File
Excel to Gedcom - Lesson 02 [Variables]
Excel to Gedcom - Lesson 02 [Variables]
How to Open and Share GEDCOM Files in 8 Steps
How to Open and Share GEDCOM Files in 8 Steps
  • NAME: Represents the full name of an individual.
  • BIRT: Denotes the birth event of an individual.
  • FAMS: Refers to the family that the individual belongs to.

Data Types in GEDCOM

GEDCOM supports various data types to accommodate diverse genealogical information. These data types include dates, names, places, and notes, each having specific format and content restrictions. For example, dates are usually presented in the ISO date format, i.e., YYYY-MM-DD, with 'A' representing an unknown date.

GEDCOM Levels and Indentation

GEDCOM files use a four-space indentation level to represent the hierarchy of the data. The first line of a record contains the level, tag, and data, with subsequent lines indented four additional spaces for each sub-record. The level of indentation indicates the relationship of a record to its parent record.

AD

The hierarchy and structure of a GEDCOM file mimic the shape of a family tree, making it an intuitive and effective way to store and manage genealogical data. Understanding this format allows users to create, view, edit, and share GEDCOM files effectively.

How to Open and Read a GEDCOM File for Your Genealogy Project
How to Open and Read a GEDCOM File for Your Genealogy Project
What is a GEDCOM file? | Who Do You Think You Are Magazine
What is a GEDCOM file? | Who Do You Think You Are Magazine
Genealogy - Working with GEDCOM Files Made Easy - Part 2
Genealogy - Working with GEDCOM Files Made Easy - Part 2
GEDCOM Files: Sharing, Merging, Exporting and More - Family Tree Magazine
GEDCOM Files: Sharing, Merging, Exporting and More - Family Tree Magazine
How To export FamilySearch GEDCOM file for FREE
How To export FamilySearch GEDCOM file for FREE
the official ged transcript form is shown
the official ged transcript form is shown

In conclusion, GEDCOM's structured format allows seamless collaboration and preservation of genealogical data. Being conversant with the GEDCOM format enables users to participate more fruitfully in genealogical research and family history efforts, ultimately providing a deeper connection to one's roots.

12 Different Types of Files Explained (Easy Guide for Beginners)
12 Different Types of Files Explained (Easy Guide for Beginners)
AD