Web platform features explorer

Uint8Array base64 and hex conversion

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.

Status

Baseline Newly Available (since 2025-09-05)

This feature is expected to reach Baseline Widely Available status on: 2028-03-05

Specifications

Browser support

  • Chrome 140 Released on 2025-09-02
  • Chrome Android 140 Released on 2025-09-02
  • Edge 140 Released on 2025-09-05
  • Firefox 133 Released on 2024-11-26
  • Firefox for Android 133 Released on 2024-11-26
  • Safari 18.2 Released on 2024-12-11
  • Safari on iOS 18.2 Released on 2024-12-11

Usage (according to Chrome Platform Status)

~0.920% of page loads. More data at chromestatus.