Hamburg is a borough in Berks County, Pennsylvania, United States. The population was 4,270 at the 2020 census.