#▼ Country▼ GDP (B$)▼ GDP/Cap▼ Pop (M)▼ Area (K km²)▼ Density▼ HDI▼ GNI/Cap▼

Country Comparison

Select 2-5 countries to compare:

Top 10 Rankings

What the Country Data Explorer shows

This page puts seven headline indicators for 30 countries into one sortable table: nominal GDP in billions of US dollars, GDP per capita, population in millions, land area in thousands of square kilometres, population density per square kilometre, the Human Development Index (HDI) and gross national income (GNI) per capita. It is meant for quick look-ups and side-by-side comparisons, for example checking the scale of an economy mentioned in the news before opening an official statistics portal.

The list covers most of the largest economies plus smaller high-income countries such as Singapore and Norway and populous developing economies such as Nigeria and Vietnam. It is not a complete world list: Argentina, Pakistan and Bangladesh, for example, are missing.

How to use it

  1. Type in the Search country box to filter the table by English name or two-letter country code (for example "JP"), or pick a continent tab: All, Asia, Europe, Americas, Africa or Oceania.
  2. Click a column heading such as GDP (B$), Pop (M), HDI or GNI/Cap to sort by it. The first click sorts from highest to lowest and a second click reverses the order. The # column is the row's position in the current view, not a world rank.
  3. Click any row to open a detail panel with all of that country's figures and its continent; click the row again to close it.
  4. In Country Comparison, tap the country chips to select between two and five countries (the United States, China and Japan start selected), then press a metric button to redraw the bar chart.
  5. In Top 10 Rankings, choose a metric to see the ten highest values as a horizontal bar chart.

How the page works

Every figure is stored in a small JavaScript array inside this page. Searching, filtering and sorting run in your browser, so nothing you type is sent to a server. The two charts are drawn with the open-source Chart.js library (version 4.4.1), which your browser downloads from cdnjs.cloudflare.com when the page loads; that is an ordinary file request and carries none of your selections.

Note that the Top 10 chart always ranks all 30 countries, ignoring the search box and continent tab, and the comparison chart needs at least two selected countries; a sixth selection is refused with a short notice.

Data sources and limitations

The page attributes its figures to World Bank, IMF and United Nations databases and describes the GDP column as nominal US-dollar estimates for 2024. No reference year is given for the other columns. The numbers are a static snapshot bundled with the page: they are not fetched from those organisations and are not updated automatically, so check the publishers' latest releases before quoting a figure.

Frequently asked questions

What is the difference between GDP per capita and GNI per capita?

GDP per capita divides the value of everything produced inside a country's borders by its population. GNI per capita counts the income earned by the country's residents, including income from abroad and excluding income paid out to foreign owners. The two can differ noticeably where foreign investment or remittances are large.

What does the HDI score mean?

The Human Development Index combines life expectancy, education and income per person into one score between 0 and 1, where higher is better. Because it is a composite, a gap of a few thousandths between two countries means little.

Is the data updated automatically?

No. The figures are fixed in the page's code and change only when the page itself is edited. Confirm current numbers with the World Bank, IMF or United Nations before relying on them.

Does the page record what I search for?

No. Searches and selections are handled in your browser, are not transmitted and are not saved between visits.

Related tools