base 64 decode javascript code example Example: javascript base64 decode var decodedString = atob(encodedString);