Skip to content
ISO 3166-1 code · ISO 3166-1 country codes

TG country code of Togo: TGO, numeric 768 and the five regions

Published Formatory editorial team

Togo

The alpha-3 code is TGO and the numeric code is 768; the lowercase two-letter code tg is unrelated and identifies the Tajik language in ISO 639-1.

Togo is a narrow strip of a country, a little over fifty kilometers wide at the coast and stretching inland from the Gulf of Guinea to Burkina Faso. ISO 3166-1 identifies it as TG, with the alpha-3 code TGO and numeric code 768. The ISO short name is simply Togo; the official long name is the Togolese Republic.

Code values at a glance

Field Value
Alpha-2 TG
Alpha-3 TGO
Numeric 768
UN region Africa, Sub-Saharan Africa
ccTLD .tg
Neighbors Ghana (GH), Benin (BJ), Burkina Faso (BF)

Historical names in records

Archives with West African holdings often use names that predate the present state. The German protectorate of Togoland, established in the 1880s, was divided after the First World War between British and French administration. The British part was later joined to Ghana, the French part became independent as Togo in 1960. A map of German Togoland therefore covers territory now in two countries, and its record may need both TG and GH in dcterms:spatial, with the historical name in the title or a note. ISO 3166-1 does not code historical colonies; it codes present territories.

Regions and finer places

Below the country level, ISO 3166-2 provides five regional codes, running from the coast northward:

  • TG-M, Maritime (includes Lomé)
  • TG-P, Plateaux
  • TG-C, Centrale
  • TG-K, Kara
  • TG-S, Savanes

These letter codes are stable and easy to read, which makes them practical for field recordings, ethnographic photographs and survey data. The example record carries both the country and the region as spatial values.

The lowercase trap

Two-letter codes in metadata come from two different standards, and tg is in both. In ISO 3166-1, uppercase TG is Togo. In ISO 639-1, lowercase tg is Tajik, a Persian language of Tajikistan, whose own country code is TJ. Most systems are case-insensitive, so a field-mapping slip can turn Togolese records into Tajik-language ones or the reverse.

BCP 47 language tags show why the case convention exists. In fr-TG the first subtag is a language (French) and the second a region (Togo). tg-TJ is Tajik as used in Tajikistan. A tag such as tg-TG is syntactically valid and almost certainly a mistake. Validators that check region subtags against the ISO 3166-1 list and language subtags against ISO 639 catch structural errors but not this one, since every part is a real code.

Recording Togolese material

Place goes into dcterms:spatial, typed with the ISO 3166 datatype or matched against the profile’s code list. Language is a separate statement in dc:language: French as fre (bibliographic) or fra (terminology), Ewe as ewe, and smaller languages such as Kabiyè, which have no ISO 639-2 code, under an ISO 639-3 code where the schema allows it, or under a collective code plus a note where it does not.

The calling code +228 sometimes ends up in numeric country fields during data migration. The ISO numeric code is 768; comparing numeric and alpha-2 values against the same row of the code list catches the swap.

Example in RDF

@prefix dcterms: <http://purl.org/dc/terms/> .

<https://example.org/sound/west-africa/lome-market-1986.wav>
    dcterms:title "Market recording, Lomé" ;
    dcterms:spatial "TG"^^dcterms:ISO3166 , "TG-M" ;
    dcterms:language <http://id.loc.gov/vocabulary/iso639-2/ewe> .

Questions about TG

Which country has the code TG?

TG is the ISO 3166-1 alpha-2 code for Togo, the West African republic between Ghana and Benin, with its capital at Lomé on the Gulf of Guinea coast. The alpha-3 code is TGO and the numeric code 768.

Is TG also a language code?

Only in lowercase and in another standard. tg is the ISO 639-1 code for Tajik, a language of Central Asia, with ISO 639-2 code tgk. Country codes are uppercase by convention, language codes lowercase, which matters in combined tags like fr-TG.

What is Togo's internet domain?

Togo's country-code top-level domain is .tg, matching the alpha-2 code. Its international calling code is +228, which is unrelated to the numeric ISO code 768. The two numbers sometimes get swapped when contact data and country data share a spreadsheet.

How are Togo's regions coded?

ISO 3166-2 lists five regions with letter codes: TG-C Centrale, TG-K Kara, TG-M Maritime, TG-P Plateaux and TG-S Savanes. Maritime is the coastal region that contains Lomé, and Savanes is the northernmost region, bordering Burkina Faso.

Which language codes are used for Togolese material?

French (fre or fra) is the official language. Ewe (ewe, ISO 639-1 ee) is widely spoken in the south, and Kabiyè in the north has an ISO 639-3 code but no ISO 639-2 entry. Language and country are always separate fields.

More from ISO 3166-1 country codes

All 5 in this group