The Elsenz Valley Railway (Elsenztalbahn) or Neckargemünd–Bad Friedrichshall railway is an electrified, partly double-tracked main line in the German state of Baden-Württemberg, running from Heidelberg via Sinsheim to Bad Friedrichshall, that, for part of its course, follows the Elsenz river that gives it its name. The crossing stations on the single-tracked sections were controlled by mechanical signal boxes until 2008, but are now controlled by electronic interlockings.