UINT16 - 16-Bit Unsigned Integer

Compact unsigned 16-bit type: graphics indices, Unicode code units, and network ports

Bit Layout

A 16-bit unsigned integer uses all 16 bits to represent magnitude, giving a range of 0 to 65,535 (216 - 1). It is the unsigned short type in C/C++ and u16 in Rust.

Overview

UINT16 is ideal for compact storage of non-negative values that fit within 0–65,535. It uses half the memory of UINT32 while covering a range sufficient for many common applications.

Common Uses

See also: INT16 For the signed variant using two's complement, commonly used for 16-bit PCM audio samples.

Range & Properties

Key Bit Patterns

Interactive Bit Visualizer

Click any bit to flip it. All 16 bits contribute directly to the unsigned magnitude.

Format Comparison

Where UINT16 Is Used