Xylokastro (Greek: Ξυλόκαστρο) is a seaside town and a former municipality in Corinthia in the Peloponnese, Greece.
Since the 2011 local government reform it is part of the municipality Xylokastro-Evrostina, of which it is a unit or component.
It has narrowly separated upper and lower coastal roads and forms a medium-sized touristic village on the Gulf of Corinth.
Apart from the narrow strip of land along the coast, where the town Xylokastro lies, the municipal unit is mountainous.
The town took its name from a wooden castle (Greek: ξύλινο κάστρο), probably built in the 13th century.