Web features explorer

Uint8Array base64 and hex conversion

Limited availability
Tags: javascript Groups: JavaScript > Collections > Typed arrays

The Uint8Array object methods fromBase64(), toBase64(), and setFromBase64() convert to and from base64 strings. The fromHex(), toHex(), and setFromHex() methods convert to and from hex strings.

Learning resources on MDN

Browser support

Specifications