GEDCOM Family Tree Viewer
Operator: Abdulla Al Fahad. How tools are built and checked
GEDCOM is the plain-text format that almost every genealogy program can export, and almost none can display well on its own. A .ged file is a long list of numbered lines describing individuals and the families that link them. Opening it in a text editor shows you the data but not the tree. This viewer reads the file, lets you choose a person, and draws that person's ancestors or descendants as a chart you can save.
The chart follows genealogical links: a person belongs to the family in which they are a child, and may head any number of families as a spouse. Everything runs in the page, which matters for a tree that names living relatives.
Key features
- GEDCOM 5.5.1 and 7 parsing, with CONC and CONT folding and report of unreadable lines
- UTF-8, UTF-16 and ANSEL decoding with a note about what was detected
- A searchable list by name, place or year, and a detail panel for each person
- Ancestor charts up to 7 generations back and descendant charts up to 8 down
- Click a box to show a person, then make them the root of the chart
- Chart export as SVG, PNG or one-page PDF, and a CSV of every individual
Reading a GEDCOM file
Each GEDCOM line holds a level number, an optional pointer in @ signs, a tag and an optional value. A level 0 line opens a record, such as @I1@ INDI for an individual or @F1@ FAM for a family, and deeper levels nest inside it. Long text is split across CONC lines, which continue the previous value directly, and CONT lines, which continue it on a new line. The reader joins these before anything else. Lines that do not fit the pattern are counted and reported with a few examples instead of stopping the load. Line breaks inside a place, a name or a note are normalised to a single space on screen, so a place continued with CONT reads as one line and a multi-paragraph note shows as one paragraph.
People are read from INDI records: the NAME line, including the slash form John /Smith/ Jr and the GIVN, SURN, NPFX and NSFX parts; SEX; events such as birth, christening, death, burial and residence with their DATE and PLAC; attributes such as occupation and title; notes; and the FAMC and FAMS links. Families come from FAM records with HUSB, WIFE, CHIL and marriage or divorce events. If a family lists a child but the child's own record omits the link, or the other way round, the reader makes both sides agree. Links to people who are not in the file are dropped with a count.
Character sets are the usual snag. GEDCOM 5.5.1 allowed ANSEL, an old library standard in which an accent is a separate byte that comes before its letter. The reader recognises a UTF-8 or UTF-16 byte-order mark, UTF-16 without one, the file's own CHAR line, and converts ANSEL to Unicode, composing accents into single letters. ANSI and ASCII files are read as Windows-1252. A file that claims UTF-8 but contains invalid sequences is read as Windows-1252, and that fallback is reported. GEDCOM 7 is always UTF-8 and is read the same way for the parts used here. Files up to 25 MB are accepted.
Dates are kept exactly as written, such as ABT 1850 or 12 MAR 1950, and the first three or four digit number is taken as the year for the summary line under a name. The charts show names and life years; the side panel lists every event with its date and place.
How it works
The ancestor chart is a pedigree. The root is in the left column, their father and mother in the next, and so on, with each generation reserving a slot for every possible ancestor so that an unknown grandparent leaves a visible gap. A person's parents are those of the first family in which they appear as a child that has a husband or a wife. A path set stops a chart from looping if the file says someone is their own ancestor, and a cut loop is reported.
The descendant chart is a tidy tree: leaves are given consecutive rows, and each parent is centred on the span of their children. Each box shows the person's spouses on a third line. Charts stop at 800 people, and say so, since a root high up a prolific line can have thousands of descendants.
Export draws the same layout again as an SVG with a white background and system fonts. The PNG is that SVG painted onto a canvas at up to twice the size, kept under 8000 pixels on the long side and 60 million pixels in all, and the PDF is a single page the size of the chart with the PNG placed on it. The CSV has 14 columns and uses a UTF-8 byte-order mark so a spreadsheet opens names correctly. Text that starts with a character a spreadsheet could read as a formula gets an apostrophe in front.
When this helps
- Looking at an export from a desktop genealogy program without installing anything
- Making a printable ancestor chart of one branch for a family reunion
- Checking what a family tree export contains before sending it to a relative or a service
- Getting a spreadsheet of individuals, with parents and places, from a GEDCOM file
Opening a file
- Drop in your .ged file. The page shows how many people and families it found, the version and the character set.
- Search for a person and click them to read their events, parents, spouses and children.
- Press Make root, choose Ancestors or Descendants and a depth, and click boxes to look at other people.
- Export the chart as SVG, PNG or PDF, or the whole file as a CSV.
Example
A short GEDCOM with a note split by CONC and CONT, and a place split by CONT
0 @I1@ INDI
1 NAME John /Smith/ Jr
1 BIRT
2 DATE 12 MAR 1950
2 PLAC Leeds, Yorkshire,
3 CONT England
1 NOTE A long note that continues
2 CONC on the same line
2 CONT and then a new lineWhat the reader makes of it
name John Smith Jr
birth year 1950 (date kept as 12 MAR 1950)
place Leeds, Yorkshire, England (the CONT line is joined)
note A long note that continues on the same line and then a new lineTips for best results
- Start from a person with known parents. The tool opens on the person with the most recorded relatives, but a descendant chart from a great-grandparent is usually the most readable.
- Use 4 or 5 generations for a printed ancestor chart. At 7 generations the chart has up to 128 slots in the last column and is better read as an SVG or zoomed on screen.
- Search combines words, so smith 1850 finds Smiths with 1850 in the name, id, birthplace or birth year.
- If names show strange characters, export again from your program as UTF-8; the viewer reads ANSEL, but not every program writes it correctly.
- Open the CSV in a spreadsheet and sort by birth place to see where a family clusters.
Limits
The viewer reads one parent family for the chart. A person with a birth family and an adoptive family is shown with the first that lists a parent.
Dates are not interpreted, so ranges such as BET 1850 AND 1855 or ABT 1850 are shown as written and only the first year counts for the summary.
Photos, sources, citations and custom tags are ignored. Only names, events, notes and family links are read.
Very old files can use IBMPC or other DOS code pages. These are read as Windows-1252, and accented letters may be wrong.
A pedigree chart reserves slots for every possible ancestor, so a lopsided tree is tall and has gaps; that is intended, because it shows which ancestors are missing.
Common errors and how to fix them
- This does not look like a GEDCOM file
- The file should begin with a line reading 0 HEAD and contain records such as 0 @I1@ INDI. A CSV or a renamed document will be refused.
- No people were found in this file
- The file has a header but no INDI records. Export again with individuals included.
- This branch is large and the chart stops
- Choose fewer generations, or make someone lower down the root. The cap is 800 people per descendant chart.
Best practices
- Remove or privatise living people in your genealogy program before sharing an export or chart.
Frequently asked questions
Can it merge duplicates or edit the tree?
No. It is a viewer: it reads the file, shows it and exports from it, and never writes a GEDCOM back. Do merging and corrections in your genealogy program.
Which GEDCOM versions work?
5.5 and 5.5.1 fully for the parts listed, and the basics of 7.0: individuals, families, names, events and notes.
What is in the CSV?
One row per person with ID, given names, surname, full name, sex, birth and death dates and places, father and mother IDs, spouse IDs, number of children and occupation.