Albany is a city on the east shore of San Francisco Bay in northwestern Alameda County, California. The population was 20,271 at the 2020 census.