Keelung City is in northern Taiwan and borders New Taipei City.
According to the 2020 Population and Housing Census, Keelung City has a resident population of about 367,264, 1.54% of Taiwan's total and the 16th largest of the 22 counties and cities. It has about 140,211 households, averaging 2.6 people each.
11.0% of residents are under 15, 71.2% are 15–64 and 17.8% are 65 or older; the average age is 43.6.
Estimated from the boundary data, it covers about 138 km², with roughly 2,664 people per km² (4th highest of 22).
Population is the resident population from the 2020 Population and Housing Census, which differs from household-registration figures.
Area is this site's approximation from the boundary data of the National Land Surveying and Mapping Center, not an official statistic.