Web platform features explorer

Base64 encoding and decoding

Widely available since 2019-03-20
Tags: api

The atob() and btoa() global functions encode and decode strings to and from base 64, respectively.

Specifications

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