rembrembdocs

Skip to main content

Bun home pagelight logodark logo

[Runtime

](../../../index.md)[Package Manager

](../../../pm/cli/install/index.md)[Bundler

](../../../bundler/index.md)[Test Runner

](../../../test/index.md)[Guides

](../../index.md)[Reference

](https://bun.com/reference)[Blog

](https://bun.com/blog)[Feedback

](../../../feedback/index.md)

The Buffer class extends Uint8Array with a number of additional methods. Use Buffer.from() to create a Buffer instance from a Uint8Array.

const arr: Uint8Array = ...
const buf = Buffer.from(arr);

See Docs > API > Binary Data for complete documentation on manipulating binary data with Bun.

Was this page helpful?

Suggest editsRaise issue

[

Convert a Uint8Array to an ArrayBuffer

Previous

](../typedarray-to-arraybuffer/index.md)[

Convert a Uint8Array to a Blob

Next

](../typedarray-to-blob/index.md)