In computer science, a mask or bitmask is data that is used for bitwise operations, particularly in a bit field. Using a mask, multiple bits in a byte, nibble, word etc can be set either on, off or inverted from on to off ( or vice versa ) in a single bitwise operation.