Bytes to String

Convert a byte array to a UTF-8 encoded string using TextDecoder.

Code

Utilities
new TextDecoder().decode(new Uint8Array(bytes));

Parameters

Byte array.

Browser·fetch() may be limited by CORS

More JavaScript Snippets