Skip to content
TreeFix

Repair garbled GEDCOM encoding and export clean UTF-8

Fixes family-tree files whose HEAD CHAR lies about the encoding (ANSEL or ANSI headers over UTF-8 or Windows-1252 bytes) and whose UTF-8 names get split across CONC continuation lines. Auto-detects the real encoding, re-joins continuations before decoding, and writes a valid UTF-8 GEDCOM so names and places stop garbling.

Preview your files

Free preview US$4 per genealogy file

Files stay on your device. No account needed.

treefix-demo.gedSource file
GEDCOM
Header charset
1 CHAR ANSEL
Name @I1@
José María García
treefix-demo.fixed.gedSample result
Names restoredValid UTF-8CONC/CONT joined

GEDCOMInput format

UTF-8Output format

Local processingFiles stay in your browser

An ANSEL header lying about UTF-8 bytes, decoded straight

What makes this file tricky

The header announces one encoding (ANSEL or ANSI) while the actual bytes are something else (UTF-8 or cp1252), so every accented surname reads as garbage like "García" or ANSEL combining-diacritic sequences. Long names are also split mid-word across CONC/CONT lines, so a naive re-decode breaks a multibyte character in half. Generic charset converters and AI chat trust the declared header or choke on the line-splitting, so they either do nothing or corrupt the file further.

What the tool accepts

Handles UTF-8/UTF-16(BOM), ANSEL, and Windows-1252 byte encodings with mis-declared CHAR headers and CONC/CONT splits. Rare ANSEL graphic characters outside the standard table and non-GEDCOM text files are out of scope.

From source file to export

  1. Open the source file

    Export or locate the GEDCOM (.ged) file whose accented names or places show up as mojibake or question marks in your genealogy app.

  2. Check your preview

    Drop it here and check the report — it names the encoding your header claimed versus the real one it detected, and how many accented characters it recovered.

  3. Save the export

    Download the -utf8.ged file and re-import it; the HEAD CHAR is now UTF-8 and all names, places, and notes read correctly.

Read the step-by-step guide

Open TreeFix

Try a sample or open your own files. The preview runs in this browser.

Source files

GEDCOM

No files selected.

Preview & export

UTF-8

Choose a file or try the sample to see the result here.

What the sample produces

The demo file declares "1 CHAR ANSEL" but actually holds UTF-8 bytes, with one name split across a CONC/CONT boundary mid-character. TreeFix detects the true encoding, rejoins the continuation lines before decoding, and writes clean UTF-8 with a corrected CHAR tag so José María García and Björk Guðmundsdóttir import correctly.

treefix-demo.fixed.ged

Header charset
1 CHAR UTF-8
Name @I1@
José María García
Name @I2@
Björk /Guðmundsdóttir/

TreeFix and other ways to do the job

Comparison of TreeFix and other tools
ToolWhat it does
TreeFixThe demo file declares "1 CHAR ANSEL" but actually holds UTF-8 bytes, with one name split across a CONC/CONT boundary mid-character. TreeFix detects the true encoding, rejoins the continuation lines before decoding, and writes clean UTF-8 with a corrected CHAR tag so José María García and Björk Guðmundsdóttir import correctly.
Chronoplex GEDCOM ValidatorDesktop tool whose Encoding Repair detects illegal GEDCOM encodings and converts the file to UTF-8 or UTF-16.
GEDminer encoding guideFree guide: re-export as UTF-8 from the original software, or convert with iconv or PowerShell, then set CHAR UTF-8.

The links describe each alternative's documented workflow.

Preview for free. Pay when you download.

Free preview

$0

Open a sample or your own files and inspect the result before deciding whether to export.

Full export

US$4 per genealogy file

Pay once to download the full result shown in your preview.

Already paid? Restore your purchase.

Frequently asked questions

My GEDCOM imports with names like "García" and "José" - can this fix it?

Yes. That mojibake is UTF-8 bytes being read as Latin-1/cp1252. TreeFix detects the real byte encoding, ignores the wrong CHAR header, and re-writes the file as true UTF-8 so the accents come back correctly.

My file's header says ANSEL but the names are still wrong - what's going on?

Many programs export UTF-8 or cp1252 bytes while leaving the CHAR tag set to ANSEL or ANSI. TreeFix looks at the actual bytes instead of trusting the header, converts them, and rewrites the CHAR line to UTF-8 so the next program reads it right.

Will this handle names that are cut in half across CONC and CONT lines?

Yes. TreeFix rejoins CONC and CONT continuation lines before decoding, so a multibyte character that was split across the line break (a common cause of garbled long surnames) is reassembled instead of corrupted.

Does it change my family data, dates, or structure - or only the encoding?

Only the text encoding and the CHAR header. Records, tags, dates, IDs and structure are left as-is; TreeFix converts the bytes to clean UTF-8 and outputs a standard GEDCOM you can re-import.

How much does TreeFix cost?

The preview is free. Each genealogy file is US$4, charged once at download.

Do my files get uploaded?

Your files are processed in your browser. Stripe handles checkout separately.

Do I need an account to pay or download?

No account is needed. Complete Stripe Checkout and return to this browser to download the result.

Can I come back to finish a paid download?

Open this tool in the same browser and select Restore purchase. Prepared exports are kept locally for up to seven days.

Guides and support

Try TreeFix with a sample

Open the tool and preview the result for free.

Open the tool