Shelby County is a county located in the U.S. state of Illinois. According to the 2020 census, it had a population of 20,990. Its county seat is Shelbyville.