# Bun Convert a Uint8Array to a string

> Convert a Uint8Array to a string

- Skill: `jarle/bun-convert-a-uint8array-to-a-string` (Agent Skill)
- Install (CLI): `npx skillmds@latest add jarle/bun-convert-a-uint8array-to-a-string`
- Raw SKILL.md: https://api.skillmd.com/api/skills/jarle/bun-convert-a-uint8array-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-a-uint8array-to-a-string

---


# Convert a Uint8Array to a string

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

```ts  theme={"theme":{"light":"github-light","dark":"dracula"}}
const arr = new Uint8Array([104, 101, 108, 108, 111]);
const decoder = new TextDecoder();
const str = decoder.decode(arr);
// => "hello"
```

***

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

