DataBrighten

    Population in largest city

    10,098 × 6rows × columns: 153 countries, 1960 to 2025

    Real data: World Bank, World Development Indicators, indicator EN.URB.LCTY, retrieved 19 November 2026. Values are as published; we only reshaped the file.

    textnumberdateyes/no
    Rows10,098country-year values
    Countries153with at least one value
    Years1960 – 202566 years with data
    LicenceCC BY 4.0credit the World Bank

    What it measures

    Population in largest city is the urban population living in the country's largest metropolitan area.

    Limits and exceptions (World Bank note)

    Aggregation of urban and rural population may not add up to total population because of different country coverage. There is no consistent and universally accepted standard for distinguishing urban from rural areas, in part because of the wide variety of situations across countries. Most countries use an urban classification related to the size or characteristics of settlements. Some define urban areas based on the presence of certain infrastructure and services. And other countries designate urban areas based on administrative arrangements. Because of national differences in the characteristics that distinguish urban from rural areas, the distinction between urban and rural population is not amenable to a single definition that would be applicable to all countries. For example, in Botswana, agglomeration of 5,000 or more inhabitants where 75 per cent of the economic activity is non-agricultural is considered "urban" while in Iceland localities of 200 or more inhabitants, and in Peru population centers with 100 or more dwellings, are considered "urban." In the United States places of 2,500 or more inhabitants, generally having population densities of 1,000 persons

    The numbers in 2025

    In 2025, 153 countries have a value. The highest is Japan (37.04 million); the lowest is Bosnia and Herzegovina (348,404). The median country value is 2.38 million.

    Top 10 countries, 2025

    value

    Source: World Bank, EN.URB.LCTY, retrieved 19 November 2026. Computed from population-in-largest-city.csv.

    Highest, 2025

    #CountryValue
    1Japan37.04 million
    2India34.67 million
    3China30.48 million
    4Bangladesh24.65 million
    5Egypt, Arab Rep.23.07 million
    6Brazil22.99 million
    7Mexico22.75 million
    8United States19.15 million
    9Pakistan18.08 million
    10Congo, Dem. Rep.17.78 million

    Lowest, 2025

    #CountryValue
    1Bosnia and Herzegovina348,404
    2Papua New Guinea431,903
    3Slovak Republic443,679
    4Estonia457,657
    5Moldova484,352
    6South Sudan500,088
    7Gambia, The510,303
    8Namibia511,369
    9Equatorial Guinea512,750
    10Albania535,702
    How many countries report, by decade
    DecadeMost countries in one year
    1960s153
    1970s153
    1980s153
    1990s153
    2000s153
    2010s153
    2020s153

    First rows

    population-in-largest-city.csv

    countrytextiso3textregiontextincome_grouptextyearnumbervaluenumber
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income1960285352
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income1961300359
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income1962316177
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income1963332829
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income1964350382
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income1965368809
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income1966388232
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income1967408087

    Data dictionary

    ColumnTypeMeaning
    countrytextCountry or economy, World Bank name
    iso3textISO 3166-1 alpha-3 code
    regiontextWorld Bank region
    income_grouptextWorld Bank income group
    yearnumberCalendar year of the value
    valuenumberPopulation in largest city, exactly as the World Bank API returns it (not rounded)

    Only country-years with a value are in the long file; blank cells in the wide file mean no value was published.

    Practice questions

    answers computed from the file

    Which country has the highest value in 2025?

    Japan, with 37.04 million.

    Excel (on the long CSV: E = year, F = value)

    =FILTER(A2:A100000,(E2:E100000=2025)*(F2:F100000=MAXIFS(F2:F100000,E2:E100000,2025)))

    SQL (table wb = the CSV)

    SELECT country, value FROM wb WHERE year = 2025
      AND value = (SELECT MAX(value) FROM wb WHERE year = 2025);

    pandas (df = pd.read_csv("population-in-largest-city.csv"))

    y = df[df.year == 2025]
    y[y.value == y.value.max()][["country", "value"]]

    File: population-in-largest-city.csv

    How many countries report a value for 2025?

    153 of the 217 economies in the file's country list.

    Excel (on the long CSV: E = year, F = value)

    =COUNTIF(E2:E100000,2025)

    SQL (table wb = the CSV)

    SELECT COUNT(*) FROM wb WHERE year = 2025;

    pandas (df = pd.read_csv("population-in-largest-city.csv"))

    (df.year == 2025).sum()

    File: population-in-largest-city.csv

    What is the median across countries in 2025?

    2.38 million (median of the 153 country values; not a World Bank aggregate).

    Excel (on the long CSV: E = year, F = value)

    =MEDIAN(FILTER(F2:F100000,E2:E100000=2025))

    SQL (table wb = the CSV)

    -- SQLite has no MEDIAN(); this picks the middle value(s)
    SELECT AVG(value) FROM (SELECT value FROM wb WHERE year = 2025 ORDER BY value
      LIMIT 2 - (SELECT COUNT(*) FROM wb WHERE year = 2025) % 2
      OFFSET (SELECT (COUNT(*) - 1) / 2 FROM wb WHERE year = 2025));

    pandas (df = pd.read_csv("population-in-largest-city.csv"))

    df[df.year == 2025]["value"].median()

    File: population-in-largest-city.csv

    Which country rose the most between 2015 and 2025?

    India: from 25.87 million to 34.67 million, a rise of 8.80 million (out of 153 countries with both years).

    Excel (on the long CSV: E = year, F = value)

    Use the wide file (population-in-largest-city-wide.csv): add a column = [2025] - [2015], then sort it largest to smallest.

    SQL (table wb = the CSV)

    SELECT a.country, b.value - a.value AS rise FROM wb a JOIN wb b ON a.iso3 = b.iso3
    WHERE a.year = 2015 AND b.year = 2025 ORDER BY rise DESC LIMIT 1;

    pandas (df = pd.read_csv("population-in-largest-city.csv"))

    w = df.pivot(index="country", columns="year", values="value")
    (w[2025] - w[2015]).dropna().nlargest(1)

    File: population-in-largest-city.csv

    Which year has the most countries reporting?

    2025, with 153 countries.

    Excel (on the long CSV: E = year, F = value)

    Make a pivot table: year in Rows, Count of value in Values, then sort by the count.

    SQL (table wb = the CSV)

    SELECT year, COUNT(*) AS n FROM wb GROUP BY year ORDER BY n DESC, year DESC LIMIT 1;

    pandas (df = pd.read_csv("population-in-largest-city.csv"))

    df.groupby("year").size().sort_values(ascending=False).head(1)

    File: population-in-largest-city.csv