Intent to Ship: Uint8Array to/from base64 and hex

254 views
Skip to first unread message

Rezvan Mahdavi Hezaveh

unread,
Jun 26, 2025, 6:28:30 PMJun 26
to blink-dev

Contact emails

rez...@chromium.orgs...@chromium.org

Explainer

None

Specification

https://tc39.es/proposal-arraybuffer-base64/spec

Summary

base64 is a common way to represent arbitrary binary data as ASCII. JavaScript has Uint8Arrays to work with binary data, but no built-in mechanism to encode that data as base64, nor to take base64'd data and produce a corresponding Uint8Arrays. This is a proposal to fix that. It also adds methods for converting between hex strings and Uint8Arrays.



Blink component

Blink>JavaScript>Language

TAG review

None

TAG review status

Not applicable

Risks



Interoperability and Compatibility

WebView application risks

Does this intent deprecate or change behavior of existing APIs, such that it has potentially high risk for Android WebView-based applications?

None



Debuggability

It is debugged as any other static method in JavaScript.



Will this feature be supported on all six Blink platforms (Windows, Mac, Linux, ChromeOS, Android, and Android WebView)?

Yes

Is this feature fully tested by web-platform-tests?

Yes

https://github.com/tc39/test262/pull/3994



Flag name on about://flags

--js_base_64

Finch feature name

V8Flag_js_base_64

Rollout plan

Will ship enabled for all users

Requires code in //chrome?

False

Estimated milestones

Shipping on desktop140
DevTrial on desktop138
Shipping on Android140
DevTrial on Android138


Anticipated spec changes

Open questions about a feature may be a source of future web compat or interop issues. Please list open issues (e.g. links to known github issues in the project for the feature specification) whose resolution may introduce web compat/interop risk (e.g., changing to naming or structure of the API in a non-backward-compatible way).

None

Link to entry on the Chrome Platform Status

https://chromestatus.com/feature/6281131254874112?gate=5080623806676992

This intent message was generated by Chrome Platform Status.

Daniel Bratell

unread,
Jul 2, 2025, 10:38:37 AMJul 2
to Rezvan Mahdavi Hezaveh, blink-dev

LGTM1

/Daniel

--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CACJ3t%2BiV8C-08B%2BPgWMbthK5MrdjV%2BO71%2Bq5%3D2rhVF5AKkSXAw%40mail.gmail.com.

Yoav Weiss (@Shopify)

unread,
Jul 2, 2025, 10:51:25 AMJul 2
to Daniel Bratell, Rezvan Mahdavi Hezaveh, blink-dev

Philip Jägenstedt

unread,
Jul 2, 2025, 11:09:39 AMJul 2
to Yoav Weiss (@Shopify), Daniel Bratell, Rezvan Mahdavi Hezaveh, blink-dev
Reply all
Reply to author
Forward
0 new messages