DataBrighten

    Urban population

    14,292 × 6rows × columns: 217 countries, 1960 to 2025

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

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

    What it measures

    Urban population refers to people living in urban areas as defined by national statistical offices. It is calculated using World Bank population estimates and urban ratios from the United Nations World Urbanization Prospects. Aggregation of urban and rural population may not add up to total population because of different country coverages.

    Limits and exceptions (World Bank note)

    Aggregation of urban and rural population may not add up to total population because of different country coverage. 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. Estimates of the world's urban population would change significantly if China, India, and a few other populous nations were to change their definition of urban centers. Because the estimates of city and metropolitan area are based on national definitions of what constitutes a city or metropolitan area, cross-country comparisons should be made with caution.

    The numbers in 2025

    In 2025, 217 countries have a value. The highest is China (933.17 million); the lowest is Liechtenstein (6,002). The median country value is 4.17 million. The World Bank's World aggregate for 2025 is 4.75 billion.

    Top 10 countries, 2025

    value

    Source: World Bank, SP.URB.TOTL, retrieved 19 November 2026. Computed from urban-population.csv.

    Highest, 2025

    #CountryValue
    1China933.17 million
    2India522.44 million
    3United States274.08 million
    4Brazil187.65 million
    5Indonesia169.70 million
    6Nigeria151.48 million
    7Japan113.87 million
    8Russian Federation107.99 million
    9Mexico105.61 million
    10Pakistan100.88 million

    Lowest, 2025

    #CountryValue
    1Liechtenstein6,002
    2Tuvalu6,212
    3Naoero12,025
    4Palau14,004
    5St. Kitts and Nevis14,968
    6Faroe Islands21,764
    7Tonga21,948
    8British Virgin Islands22,804
    9Antigua and Barbuda22,924
    10St. Martin (French part)24,941
    How many countries report, by decade
    DecadeMost countries in one year
    1960s216
    1970s216
    1980s216
    1990s217
    2000s217
    2010s217
    2020s217

    World aggregate by year

    As published by the World Bank (in the regions file, not the country file).

    YearWorld
    20254.75 billion
    20244.69 billion
    20234.62 billion
    20224.56 billion
    20214.50 billion
    20204.43 billion
    20194.37 billion
    20184.29 billion
    20174.21 billion
    20164.13 billion
    20154.05 billion
    20143.96 billion

    By region, 2025

    World Bank regionValue
    East Asia & Pacific1.55 billion
    Europe & Central Asia690.74 million
    South Asia605.70 million
    Sub-Saharan Africa 590.23 million
    Latin America & Caribbean 543.31 million
    Middle East, North Africa, Afghanistan & Pakistan463.33 million
    North America308.67 million

    First rows

    urban-population.csv

    countrytextiso3textregiontextincome_grouptextyearnumbervaluenumber
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income1960733876
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income1961773024
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income1962814672
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income1963858901
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income1964905973
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income1965956366
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income19661010084
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income19671067482

    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
    valuenumberUrban population, 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?

    China, with 933.17 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("urban-population.csv"))

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

    File: urban-population.csv

    How many countries report a value for 2025?

    217 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("urban-population.csv"))

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

    File: urban-population.csv

    What is the median across countries in 2025?

    4.17 million (median of the 217 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("urban-population.csv"))

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

    File: urban-population.csv

    Which country rose the most between 2015 and 2025?

    China: from 791.07 million to 933.17 million, a rise of 142.10 million (out of 217 countries with both years).

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

    Use the wide file (urban-population-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("urban-population.csv"))

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

    File: urban-population.csv

    Which year has the most countries reporting?

    2025, with 217 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("urban-population.csv"))

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

    File: urban-population.csv