World Countries & Capitals ISO Dataset CSV Page 1 Preview Page 1 Preview
CSV TEMPLATE 100% Virus-Free & Macro-Safe

World Countries & Capitals ISO Dataset CSV

Download a reference dataset of world countries and capitals in CSV. Includes ISO-3166 codes, continents, and currencies for database lookup.

File Format CSV
File Size 3 KB
Compatibility Universal (SQL Lookups, React, Vue, Python, Geographic Information Systems, APIs)
License Free (Personal & Commercial)

Template Highlights & Included Features

ISO 3166-1 International Standard

Contains standardized 2-letter (alpha-2), 3-letter (alpha-3), and three-digit numerical country codes used in international trade and banking.

Essential Geographic & Telephony Attributes

Includes Sovereign Name, Official State Title, Capital City, Continent, ISO Currency Code (e.g., USD, EUR, JPY), Dialing Prefix, and ccTLD.

Clean UTF-8 Diacritic Support

Fully encoded in UTF-8 to preserve international city names and accent marks (e.g., Brasília) without corrupting character sets.

Plug-and-Play Dropdown Menus

Ideal for seeding country selection menus in registration forms, checkout billing pages, and localization microservices.

Every web application that handles user registration, payment processing, shipping logistics, or internationalization requires an accurate, standardized country dataset. Building country lists manually frequently results in spelling inconsistencies, missing ISO codes, and formatting errors that break downstream third-party APIs like Stripe and PayPal. This World Countries, Capitals and ISO Codes Dataset (.csv) provides a clean, verified lookup table.

Dataset Fields & Schema

The dataset provides standardized tabular columns designed for easy database indexing:

Field NameTypeExamplePurpose & Standard
Country_NameStringGermanyCommon English country name
Official_State_NameStringFederal Republic of GermanyFormal constitutional state title
ISO_Alpha2String (2-Char)DEISO 3166-1 alpha-2 code (Form pickers, Stripe)
ISO_Alpha3String (3-Char)DEUISO 3166-1 alpha-3 code (Passports, international shipping)
Numeric_CodeString (3-Digit)276ISO 3166-1 numeric UN code
Capital_CityStringBerlinNational seat of government
ContinentStringEuropeRegional continental classification
Currency_CodeString (3-Char)EURISO 4217 official monetary code
Phone_PrefixString+49ITU-T international direct dialing prefix
Top_Level_DomainString.deCountry code top-level internet domain (ccTLD)

Implementation Examples

1. Fast SQL Table Migration (PostgreSQL)

CREATE TABLE geo_countries (
    country_name VARCHAR(100) NOT NULL,
    official_name VARCHAR(150),
    iso_alpha2 CHAR(2) PRIMARY KEY,
    iso_alpha3 CHAR(3) NOT NULL,
    numeric_code CHAR(3),
    capital_city VARCHAR(100),
    continent VARCHAR(50),
    currency_code CHAR(3),
    phone_prefix VARCHAR(10),
    tld VARCHAR(10)
);

\copy geo_countries FROM 'world-countries-capitals-iso-dataset.csv' WITH (FORMAT csv, HEADER true);

2. Frontend React / Vue Select Component

Map over the dataset to render an accessible country selector:

import countries from './world-countries-capitals-iso-dataset.json';

export function CountrySelect({ value, onChange }) {
  return (
    <select value={value} onChange={e => onChange(e.target.value)}>
      {countries.map(c => (
        <option key={c.ISO_Alpha2} value={c.ISO_Alpha2}>
          {c.Country_Name} ({c.ISO_Alpha2})
        </option>
      ))}
    </select>
  );
}

Frequently Asked Questions

What ISO standard does this country dataset adhere to?
It adheres strictly to the ISO 3166-1 standard for country codes and ISO 4217 for international three-letter currency codes.
Can I use this dataset in web applications for country picker dropdowns?
Yes. The ISO_Alpha2 code is the standard identifier used by HTML form select inputs and international address validation libraries.
How can I convert this CSV into a JSON array for JavaScript projects?
You can load this file into any CSV-to-JSON utility or parse it directly in Node.js using `csv-parser` or Python's built-in `json` and `csv` libraries.