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