Countries where the capital isn’t the largest city
A capital city is a settlement specified by the law of a country or subdivision (state, province, county). It functions as the spot of the government’s principal gathering place and offices.
Tokyo is the most populous capital city worldwide, with a total of more than 37.5 million residents.
In most nations around the world, a capital city is usually the largest city in the country. However, in some nations, capital cities are not the largest cities in a nation. In many such nations, the capital cities are comparatively new compared to other cities and had the seat of government shifted to them from other larger cities.
Most surprising for everyday people, non-capital cities in the world are Sydney (Australia), Rio de Janeiro (Brazil), Istanbul (Turkey), Casablanca (Morocco).
Here is the map of countries where the capital isn’t the largest city.