Native base64 utility methods

Mathias Bynens mathias at
Sun May 4 14:16:44 PDT 2014

To convert from base64 to ASCII and vice versa, browsers have had global `atob` and `btoa` functions for a while now. At the moment, these are defined in the HTML standard:

However, such utility methods are not only useful in browsers. How about adding these as global functions to ECMAScript so that they’re natively available in all JavaScript engines, not just in browser environments?

More information about the es-discuss mailing list