Encoding is the process of converting data into a digital format for transmission. There are different encoding techniques for analog and digital signals. Common digital to digital encoding techniques include NRZ, NRZI, Manchester, and 4B/5B encoding. NRZ assigns a voltage level to represent each bit but can result in baseline wander with long strings of 1s or 0s. NRZI and Manchester encoding add transitions to allow for clocking but require more bandwidth. 4B/5B encoding maps 4-bit groups to 5-bit codes to avoid long runs of the same bit.