UINT8 - 8-Bit Unsigned Integer

The unsigned byte: pixel colors, raw binary data, and ML image preprocessing

Bit Layout

An 8-bit unsigned integer uses all 8 bits for magnitude, giving a range of 0 to 255 (28 - 1). It is the unsigned char type in C/C++, byte in C#/Java, and u8 in Rust.

Overview

UINT8 is the fundamental unit of byte-addressable memory. Its 256 possible values are sufficient for color channels, character encodings, and raw binary protocols. In machine learning, UINT8 is the standard input format for image data before normalization to float.

Common Uses

See also: INT8 For the signed variant using two's complement (range -128 to 127), which is the primary format for ML inference quantization.

Range & Properties

Key Bit Patterns

Interactive Bit Visualizer

Click any of the 8 bits to flip them. With only 256 possible values, you can explore the entire format.

Format Comparison

Where UINT8 Is Used