Base64 encoding and decoding
Widely available since 2019-03-20
The atob()
and btoa()
global functions encode and decode strings to and from base 64, respectively.
Learning resources on MDN
Browser support (view on caniuse.com)
- Chrome 30 Released on 2013-10-01
- Chrome Android 30 Released on 2013-10-02
- Edge 12 Released on 2015-07-29
- Firefox 4 Released on 2011-03-22
- Firefox for Android 4 Released on 2011-03-29
- Safari 10 Released on 2016-09-20
- Safari on iOS 10 Released on 2016-09-13
Specifications
- HTML (#atob), from HTML Workstream (WHATWG).
View web-platform-tests results for this feature - View the feature source file (dist) - Edit the feature - Report an issue about this feature