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