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