Uint8Array
Uint8Array is a JavaScript function in the Typed Array category. 8-bit unsigned integer array. The syntax is new Uint8Array(length). A typical example: new Uint8Array([255, 0]). A close sibling is Int8Array, which 8-bit signed integer array. A close sibling is Float64Array, which 64-bit float array. A close sibling is ArrayBuffer, which fixed-length binary buffer. A close sibling is Int32Array, which 32-bit signed integer array. More about this category: Typed arrays for binary data. Related Typed Array methods: Int8Array, Float64Array, ArrayBuffer, Int32Array, Uint16Array, BigInt64Array, BigUint64Array, SharedArrayBuffer. This page is part of the free JS Reference documentation covering 1027+ methods, each with syntax, parameters, return values, examples, and common pitfalls. You can try Uint8Array immediately in the JavaScript playground, look up unfamiliar terms in the glossary, or return to the JS Reference homepage.