A code unit is the fundamental, fixed-size digital element that forms a part of a character encoding. It's the smallest chunk of data used to represent text, often combining with others to form a single character. For instance, UTF-8 employs 8-bit units, while UTF-16 uses 16-bit units.