Ejby is a small railway town in Middelfart Municipality. It lies between Odense station and Middelfart station, on the island of Funen, Region of Southern Denmark, Denmark. It has a population of 1,967 (1 January 2014).
Until 1 January 2007, Ejby was the municipal seat of the former Ejby Municipality.
Coordinates: 55°25′46″N 9°55′45″E / 55.42935°N 9.92924°E