The Stonehouse and Nailsworth Railway was a short railway line in the county of Gloucestershire, England, which brought the Cotswold town of Nailsworth into the UK national rail network. (Often called the Dudbridge Donkey Line). The line was 5 3⁄4 miles (9.3 km) long, and ran from a junction with the Midland Railway's main line between Bristol and Gloucester at Stonehouse to a terminus at Nailsworth.
The line was completed in 1867 and its backers had further plans to extend it southwards to Tetbury and Malmesbury. But it ran into financial trouble very quickly and the company was subsumed into the Midland Railway.
The line was run as a branch from Stonehouse (Bristol Road) station, though the junction with the Midland Railway main line was a little to the north of Stonehouse station. A separate platform for the Nailsworth services at Stonehouse was joined to the mainline station by a covered walkway. There were intermediate stations at Ryeford, Dudbridge and Woodchester, all except the last named having stone buildings on a large scale.
Dudbridge was originally advertised as "Dudbridge for Stroud" after the market town only 1 mile (1.6 km) or so away. In 1885, however, the Midland opened for goods traffic a short branch from Dudbridge to a station in Stroud that was variously known as Stroud Cheapside and Stroud Wallbridge. Passenger services began the following year, 1886, and connected to the main branch line services at Dudbridge.