A multiplexer selects one of two (or more) inputs based on a control input. It then outputs the selected input.

Multiplexers switch between 2 or more input channels to one output channel. Each input channel can consist of one or more bits. For 2 input channels 1 select bit is needed, for 4 input channels 2 select bits, and for 8 input channels 3 select bits.