# Convert an ArrayBuffer to an array of numbers (/docs/guides/binary/arraybuffer-to-array)

<!-- agent-signals: reading_time_min: 1 · est_tokens: 218 · 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 a Uint8Array](/docs/guides/binary/arraybuffer-to-typedarray.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)

To retrieve the contents of an `ArrayBuffer` as an array of numbers, create a [`Uint8Array`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array) over the buffer, then use [`Array.from()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/from) to convert it to an array.

```ts
const buf = new ArrayBuffer(64);
const arr = new Uint8Array(buf);
arr.length; // 64
arr[0]; // 0 (instantiated with all zeros)
```

***

The `Uint8Array` class supports array indexing and iteration. To convert the instance to a regular `Array`, use `Array.from()`. This is likely slower than using the `Uint8Array` directly.

```ts
const buf = new ArrayBuffer(64);
const uintArr = new Uint8Array(buf);
const regularArr = Array.from(uintArr);
// number[]
```

***

See [Binary Data](/runtime/binary-data#conversion).
