Ejby is a town in Køge Municipality, with a population of 3,130, on the Danish island of Zealand. The town is located about 8 kilometres/5 miles west of the town of Køge.