Codford is a village and civil parish south of Salisbury Plain in the Wylye Valley in Wiltshire, England. The village lies some 7 miles (11 km) southeast of Warminster.
The village is on the A36 road between Salisbury and Warminster. The A36 previously ran along the whole length of the High Street, but a bypass which was built in the 1990s removed the through traffic.
The Chitterne Brook flows north-south through the parish, then turns southeast to flow through Codford St Mary before joining the Wylye.