# Convert a Blob to a Uint8Array (/docs/guides/binary/blob-to-typedarray)

<!-- agent-signals: reading_time_min: 1 · est_tokens: 143 · 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 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)

The [`Blob`](https://developer.mozilla.org/en-US/docs/Web/API/Blob) class provides several methods for consuming its contents in different formats. Use `.bytes()` to read the contents as a `Uint8Array`.

```ts
const blob = new Blob(["hello world"]);
const arr = await blob.bytes();
```

Alternatively, read the contents into an `ArrayBuffer` with `.arrayBuffer()`, then create a `Uint8Array` from the buffer.

```ts
const blob = new Blob(["hello world"]);
const arr = new Uint8Array(await blob.arrayBuffer());
```

***

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