---
title: Convert a Buffer to an ArrayBuffer
description: "Access the `ArrayBuffer` underlying a Node.js `Buffer` through its `.buffer` property."
sidebarTitle: "Buffer to ArrayBuffer"
mode: center
---

The Node.js [`Buffer`](https://nodejs.org/api/buffer.html) class views and manipulates data in an underlying `ArrayBuffer`. The `buffer` property returns that `ArrayBuffer`.

```ts
const nodeBuf = Buffer.alloc(64);
const arrBuf = nodeBuf.buffer;
```

---

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