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. To learn more, see Uint8Array.fromBase64(), Uint8Array.fromHex(), Uint8Array.prototype.setFromBase64(), Uint8Array.setFromHex(), Uint8Array.prototype.toBase64(), Uint8Array.prototype.toHex() at MDN.

Compatibility

Specifications