# Bun Convert an ArrayBuffer to a string

> Convert an ArrayBuffer to a string

- Skill: `jarle/bun-convert-an-arraybuffer-to-a-string` (Agent Skill)
- Install (CLI): `npx skillmds@latest add jarle/bun-convert-an-arraybuffer-to-a-string`
- Raw SKILL.md: https://api.skillmd.com/api/skills/jarle/bun-convert-an-arraybuffer-to-a-string/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: jarle (https://skillmd.com/u/jarle)
- Updated: 2026-09-22
- Page: https://skillmd.com/skills/jarle/bun-convert-an-arraybuffer-to-a-string

---


# Convert an ArrayBuffer to a string

Bun implements the Web-standard [`TextDecoder`](https://developer.mozilla.org/en-US/docs/Web/API/TextDecoder) class for converting between binary data types and strings.

```ts  theme={"theme":{"light":"github-light","dark":"dracula"}}
const buf = new ArrayBuffer(64);
const decoder = new TextDecoder();
const str = decoder.decode(buf);
```

***

See [Docs > API > Binary Data](/runtime/binary-data#conversion) for complete documentation on manipulating binary data with Bun.

