base64 decode javascript how to code example Example: javascript base64 decode var decodedString = atob(encodedString);