A branch line is a secondary railway line which branches off a more important through route, usually a main line. A very short branch line may be called a spur line. David Blyth Hanna, the first president of the Canadian National Railway, said that although most branch lines cannot pay for themselves, they are essential to make main lines pay.
Industrial spurs can vary greatly in length and railcar capacity depending on the requirements of the customer the spur is serving. In heavily industrialized areas, it is not uncommon for one industrial spur to have multiple sidings to several different customers. Typically, spurs are serviced by local trains responsible for collecting small numbers of railcars and delivering them to a larger yard, where these railcars are sorted and dispatched in larger trains with other cars destined to similar locations. Because industrial spurs generally have less capacity and traffic than a mainline, they tend to have lower maintenance and signaling (train control) standards.
Before the rise of the long-distance trucking in the early 1930s, railroads were the primary means of transportation around the world. Industries of the era were commonly built along railroad lines specifically to allow for easy access to shipping. Short (under a mile, oftentimes only several hundred yards) industrial spurs with very small (under ten car) capacities were a common sight along railroads in industrial and rural cities alike. As automobile and roadway technology improved throughout the early and mid 20th century, most low volume industry spurs were abandoned in favor of the greater flexibility and economic savings of trucking. Today, railroads remain the most economical way to ship large quantities of material, a fact that is reflected in industrial spurs. Most modern day spurs serve very large industries that require hundreds, if not thousands, of carloads a year.
The smallest branch line that is still in operation in the UK is the Stourbridge Town Branch Line from Stourbridge Junction going to Stourbridge Town. Operating on a single track, the journey is 0.8 miles (1.3 kilometres) long and the train takes around two and a half minutes to complete its journey.
In North America, little-used branch lines are often sold by large railroads to become new common carrier short-line railroads of their own. Throughout the United States and Canada, branch lines link smaller towns too distant from the main line to be served efficiently, or to serve a certain industrial site such as a power station either because of a location away from the main line or to reduce congestion. They were typically built to lower standards, utilizing lighter rail and shallow roadbeds when compared to main lines. In the United States, abandonment of unproductive branch lines was a byproduct of deregulation of the rail industry through the Staggers Act.
The Princeton Branch is a commuter rail line and service owned and operated by New Jersey Transit (NJT) in the U.S. state of New Jersey. The line is a short branch of the Northeast Corridor Line, running from Princeton Junction northwest to Princeton with no intermediate stops. Also known as the "Dinky Line", at 2.9 mi (4.7 km) it is the shortest scheduled commuter rail line in the United States. The run takes 4 minutes, 47 seconds. 
From 1990 to 1996, the section of the North South Line between Jurong East and Choa Chu Kang stations was operated as a separate line, known as the Branch Line. It was merged into the North South Line with the opening of the Woodlands Extension in 1996.The future Jurong Region Line and Cross Island Line will also have branch lines.
Two extensions to the MTR rapid transit network were built as branches of existing lines: the Lok Ma Chau Spur Line to Lok Ma Chau Station, which opened in 2007; and the South Tseung Kwan O Spur Line to LOHAS Park Station, opened in 2009.
New Zealand once had a very extensive network of branch lines, especially in the South Island regions of Canterbury, Otago, and Southland. Many were built in the late 19th century to open up inland regions for farming and other economic activities. The branches in the South Island regions were often general-purpose lines that carried predominantly agricultural traffic, but lines elsewhere were often built to serve a specific resource: on the West Coast, an extensive network of branch lines was built in rugged terrain to serve coal mines, while in the central North Island and the Bay of Plenty, lines were built inland to provide rail access to large logging operations.
Today, many of the branch lines have been closed, including almost all of the general-purpose country lines. Those that remain serve ports or industries far from main lines such as coal mines, logging operations, large dairying factories, and steelworks. In Auckland and Wellington, two branch lines in each city exist solely for commuter passenger trains. For more, see the list of New Zealand railway lines.
- Hanna, David Blyth, Macmillan 1924
- Dow, Andrew, Dow's Dictionary of Railway Quotations, JHU Press 2006.
- Rosenbaum, Joel; Tom Gallo (1997). NJ Transit Rail Operations. Railpace Newsmagazine. Archived from the original on 2011-10-03. Retrieved 2013-07-20.
- "Picks and Pans Review: Princeton Junction & Back", People, vol. 11 no. 13, April 2, 1979, retrieved April 15, 2012
- Schultz, Bonnie (June 2011). "Arts and Transit: NJ Transit Weighs In". AllPrinceton.com. Archived from the original on October 18, 2012. Retrieved April 15, 2014.
- Frassinelli, Mike (June 25, 2013). "Historic Princeton 'Dinky' line train station to move for arts center". The Star-Ledger. Retrieved 2013-06-26.