# Convert an ArrayBuffer to a Uint8Array (/docs/guides/binary/arraybuffer-to-typedarray)

<!-- agent-signals: reading_time_min: 1 · est_tokens: 207 · updated: 2026-07-28 -->
Related: [Convert an ArrayBuffer to a string](/docs/guides/binary/arraybuffer-to-string.md), [Convert an ArrayBuffer to a Buffer](/docs/guides/binary/arraybuffer-to-buffer.md), [Convert an ArrayBuffer to a Blob](/docs/guides/binary/arraybuffer-to-blob.md), [Convert an ArrayBuffer to an array of numbers](/docs/guides/binary/arraybuffer-to-array.md), [Convert a Buffer to a string](/docs/guides/binary/buffer-to-string.md), [Convert a Buffer to an ArrayBuffer](/docs/guides/binary/buffer-to-arraybuffer.md)

A `Uint8Array` is a *typed array*, a view over the data in an underlying `ArrayBuffer`.

```ts
const buffer = new ArrayBuffer(64);
const arr = new Uint8Array(buffer);
```

***

Create instances of other typed arrays the same way.

```ts
const buffer = new ArrayBuffer(64);

const arr1 = new Uint8Array(buffer);
const arr2 = new Uint16Array(buffer);
const arr3 = new Uint32Array(buffer);
const arr4 = new Float32Array(buffer);
const arr5 = new Float64Array(buffer);
const arr6 = new BigInt64Array(buffer);
const arr7 = new BigUint64Array(buffer);
```

***

To create a typed array that only views a portion of the underlying buffer, pass the offset and length to the constructor.

```ts
const buffer = new ArrayBuffer(64);
const arr = new Uint8Array(buffer, 0, 16); // view first 16 bytes
```

***

See [Utils](/runtime/utils).
